Skip to content

Commit

Permalink
throttled onwheel event (#516)
Browse files Browse the repository at this point in the history
* throttled onwheel event

* reduced throttle
  • Loading branch information
kwcantrell authored May 27, 2021
1 parent 5eb4b65 commit 4f8db9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion empress/support_files/js/canvas-events.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ define(["underscore", "glMatrix", "SelectedNodeMenu"], function (

canvas.onmousedown = mouseDown;
canvas.onclick = mouseClick;
canvas.onwheel = zoomTree;
canvas.onwheel = _.throttle(zoomTree, 10);
canvas.ondblclick = doubleClick;
};

Expand Down

0 comments on commit 4f8db9d

Please sign in to comment.