Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc77121 commit 75c0957Copy full SHA for 75c0957
1 file changed
lib/matplotlib/backends/web_backend/mpl.js
@@ -149,7 +149,12 @@ mpl.figure.prototype._init_canvas = function() {
149
canvas_div.on("wheel mousewheel", function (event) {
150
event = event.originalEvent;
151
event['data'] = 'scroll'
152
- event.step = -event.deltaY / 3.
+ if (event.deltaY < 0) {
153
+ event.step = 1;
154
+ } else {
155
+ event.step = -1;
156
+ }
157
+ console.log(event.step);
158
mouse_event_fn(event);
159
});
160
0 commit comments