question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Notebook scrolls when zooming

See original GitHub issue

Describe 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:

  1. 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.
  2. 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:closed
  • Created 2 years ago
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Installkacommented, Jul 16, 2021

Updated to 0.12.30. Nothing changed.

1reaction
Installkacommented, Jun 3, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found