diff --git a/src/litegraph.js b/src/litegraph.js index 359f6e1d0..a34efcaf2 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -7006,11 +7006,7 @@ LGraphNode.prototype.executeAction = function(action) var scale = this.ds.scale; - if (delta > 0) { - scale *= 1.1; - } else if (delta < 0) { - scale *= 1 / 1.1; - } + scale *= Math.pow(1.1, delta * 0.01); //this.setZoom( scale, [ e.clientX, e.clientY ] ); this.ds.changeScale(scale, [e.clientX, e.clientY]);