mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Finally get Firefox and Chrome to wheel zoom in the same manner...
This commit is contained in:
parent
e0971d96c6
commit
3ba6ad07b7
@ -525,7 +525,7 @@ RED.view = function() {
|
|||||||
if ( evt.altKey ) {
|
if ( evt.altKey ) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
evt.stopPropagation();
|
evt.stopPropagation();
|
||||||
var move = evt.originalEvent.detail || evt.originalEvent.wheelDelta;
|
var move = -(evt.originalEvent.detail) || evt.originalEvent.wheelDelta;
|
||||||
if (move <= 0) { zoomOut(); }
|
if (move <= 0) { zoomOut(); }
|
||||||
else { zoomIn(); }
|
else { zoomIn(); }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user