mirror of
				https://github.com/beestat/app.git
				synced 2025-10-30 17:52:25 -04:00 
			
		
		
		
	Fixed toggling snapping breaking active dragging
This commit is contained in:
		
							parent
							
								
									7ac646463f
								
							
						
					
					
						commit
						db6cb0d1f4
					
				| @ -122,7 +122,6 @@ beestat.component.card.floor_plan_editor.prototype.decorate_drawing_pane_ = func | ||||
|     self.rerender(); | ||||
|   }); | ||||
|   this.floor_plan_.addEventListener('clear_room', self.rerender.bind(this)); | ||||
|   this.floor_plan_.addEventListener('toggle_snapping', self.rerender.bind(this)); | ||||
|   this.floor_plan_.addEventListener('change_group', self.rerender.bind(this)); | ||||
| 
 | ||||
|   // Add all of the entities to the SVG.
 | ||||
|  | ||||
| @ -556,7 +556,7 @@ beestat.component.floor_plan.prototype.update_infobox = function() { | ||||
|  */ | ||||
| beestat.component.floor_plan.prototype.toggle_snapping_ = function() { | ||||
|   this.state_.snapping = !this.state_.snapping; | ||||
|   this.dispatchEvent('toggle_snapping'); | ||||
|   this.update_toolbar(); | ||||
| }; | ||||
| 
 | ||||
| /** | ||||
|  | ||||
| @ -179,7 +179,7 @@ beestat.component.floor_plan_entity.point.prototype.after_mousedown_handler_ = f | ||||
| }; | ||||
| 
 | ||||
| /** | ||||
|  * point dragging a point around. Snaps to X and Y of other points. | ||||
|  * Handle dragging a point around. Snaps to X and Y of other points. | ||||
|  * | ||||
|  * @param {Event} e | ||||
|  */ | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user