mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Reverse mouse wheel - so canvas (alt) zoom consistent with page (ctrl) zoom
This commit is contained in:
parent
a76f48f50b
commit
7ed10d631e
@ -47,10 +47,8 @@ RED.view = function() {
|
|||||||
moveTouchCenter = [],
|
moveTouchCenter = [],
|
||||||
touches = 0;
|
touches = 0;
|
||||||
|
|
||||||
|
|
||||||
var clipboard = "";
|
var clipboard = "";
|
||||||
|
|
||||||
|
|
||||||
var status_colours = {
|
var status_colours = {
|
||||||
"red": "#c00",
|
"red": "#c00",
|
||||||
"green": "#5a8",
|
"green": "#5a8",
|
||||||
@ -528,8 +526,8 @@ RED.view = function() {
|
|||||||
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) { zoomIn(); }
|
if (move <= 0) { zoomOut(); }
|
||||||
else { zoomOut(); }
|
else { zoomIn(); }
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$("#chart").droppable({
|
$("#chart").droppable({
|
||||||
@ -1260,7 +1258,7 @@ RED.view = function() {
|
|||||||
RED.keyboard.add(/* i */ 73,{ctrl:true},function(){showImportNodesDialog();d3.event.preventDefault();});
|
RED.keyboard.add(/* i */ 73,{ctrl:true},function(){showImportNodesDialog();d3.event.preventDefault();});
|
||||||
|
|
||||||
// TODO: 'dirty' should be a property of RED.nodes - with an event callback for ui hooks
|
// TODO: 'dirty' should be a property of RED.nodes - with an event callback for ui hooks
|
||||||
function setDirty(d) {
|
function setDirty(d) {___
|
||||||
dirty = d;
|
dirty = d;
|
||||||
if (dirty) {
|
if (dirty) {
|
||||||
$("#btn-deploy").removeClass("disabled").addClass("btn-danger");
|
$("#btn-deploy").removeClass("disabled").addClass("btn-danger");
|
||||||
|
Loading…
Reference in New Issue
Block a user