Notebook scrolls when zooming
See original GitHub issueDescribe the bug Notebook scrolls when using PanZoom after clicking any buttons on Toolbar.
To Reproduce When I run code cell with plot for the first time, everything works fine. But when I click on any button from Toolbar and then click again on PanZoom button, notebook starts scrolling when zooming plot.
You can use this code to reproduce the bug:
from bqplot import *
from IPython.display import display
x_data = range(10)
y_data = [i ** 2 for i in x_data]
x_sc = LinearScale()
y_sc = LinearScale()
ax_x = Axis(label='Test X', scale=x_sc, tick_format='0.0f')
ax_y = Axis(label='Test Y', scale=y_sc,
orientation='vertical', tick_format='0.2f')
line = Lines(x=x_data,
y=y_data,
scales={'x': x_sc, 'y': y_sc},
colors=['red', 'yellow'])
fig = Figure(axes=[ax_x, ax_y], marks=[line])
tb = Toolbar(figure=fig)
display(fig)
display(tb)
Expected behavior Only plot should scroll when mouse hovers it.
Additional context Bug was reproduced with next setups:
- Jupyter Lab 3.0.16 running on Windows 7 with bqplot 0.12.27 and Python 3.8.10. I tried to use it with: Edge 91.0.864.37 (Official build) (64-bit) from Win 7 PC and remotely from Win 10 and macOS 11.4; Chrome 91.0.4472.77 (Official Build) (64-bit) from Win 7 PC; Chrome 90.0.4430.0 (Developer Build) (64-bit) remotely from Win 10; Safari 14.1.1 (16611.2.7.1.4) remotely from macOS 11.4.
- Jupyter Lab 3.0.10 running on Windows 10 with bqplot 0.12.27 and Python 3.9.5. I tried to use it with Edge 91.0.864.37 (Official build) (64-bit) from Win 10;
I’ve already seen Pull request https://github.com/bqplot/bqplot/pull/1347, but I don’t think it fixed this problem, because I tried to use bqplot 0.12.25, 0.12.26 and 0.12.27.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (5 by maintainers)
Top Results From Across the Web
How to Fix Mouse Zooming Instead of Scrolling on Windows 10?
Method 1: Testing for stuck CTRL key ... As it turns out, one of the most common causes that will trigger this kind...
Read more >Windows 10 Touch Screen Zooms Rather than Scolls
Windows 10 Touch Screen Zooms Rather than Scolls. My HP laptop normally lets me scroll when I run my index finger on the...
Read more >7 Ways to Fix a Mouse Wheel That Keeps Zooming Instead of ...
7 Ways to Fix a Mouse Wheel That Keeps Zooming Instead of Scrolling on Windows · 1. Ensure the Ctrl Key Isn't Stuck...
Read more >Mouse wheel is zooming instead of scrolling
Mouse wheel is zooming instead of scrolling · 1] Check your Ctrl key · 2] Disable the Zoom on roll with IntelliMouse feature...
Read more >4 Easy Ways to Fix Scroll Wheel Stuck on Zoom
4 Easy Ways to Fix Scroll Wheel Stuck on Zoom · 1. Check for stuck keys. Press Windows + R to open the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updated to 0.12.30. Nothing changed.
I should say, that I’m using bqplot with PanZoom for about a 4 months and everything was OK. But today I’ve opened my notebook and this problem started to occur. I didn’t update any packages, Python or browsers.