Skip to content

Commit 0623766

Browse files
committed
Clean up wheel function
1 parent 75c0957 commit 0623766

File tree

1 file changed

+1
-2
lines changed
  • lib/matplotlib/backends/web_backend

1 file changed

+1
-2
lines changed

lib/matplotlib/backends/web_backend/mpl.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,14 @@ mpl.figure.prototype._init_canvas = function() {
146146
rubberband.mouseenter('figure_enter', mouse_event_fn);
147147
rubberband.mouseleave('figure_leave', mouse_event_fn);
148148

149-
canvas_div.on("wheel mousewheel", function (event) {
149+
canvas_div.on("wheel", function (event) {
150150
event = event.originalEvent;
151151
event['data'] = 'scroll'
152152
if (event.deltaY < 0) {
153153
event.step = 1;
154154
} else {
155155
event.step = -1;
156156
}
157-
console.log(event.step);
158157
mouse_event_fn(event);
159158
});
160159

0 commit comments

Comments
 (0)