mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Finally get Firefox and Chrome to wheel zoom in the same manner...
This commit is contained in:
		| @@ -522,13 +522,13 @@ RED.view = function() { | ||||
|     $('#btn-zoom-zero').click(function() {zoomZero();}); | ||||
|     $('#btn-zoom-in').click(function() {zoomIn();}); | ||||
|     $("#chart").on('DOMMouseScroll mousewheel', function (evt) { | ||||
|             if ( evt.altKey ) { | ||||
|                 evt.preventDefault(); | ||||
|                 evt.stopPropagation(); | ||||
|                 var move = evt.originalEvent.detail || evt.originalEvent.wheelDelta; | ||||
|                 if (move <= 0) { zoomOut(); } | ||||
|                 else { zoomIn(); } | ||||
|             } | ||||
|         if ( evt.altKey ) { | ||||
|             evt.preventDefault(); | ||||
|             evt.stopPropagation(); | ||||
|             var move = -(evt.originalEvent.detail) || evt.originalEvent.wheelDelta; | ||||
|             if (move <= 0) { zoomOut(); } | ||||
|             else { zoomIn(); } | ||||
|         } | ||||
|     }); | ||||
|     $("#chart").droppable({ | ||||
|             accept:".palette_node", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user