Commit c0def59
authored
Fix page scrolling when using mouse wheel to zoom in Jupyter notebooks (#194)
Adds a wheel event listener that prevents event propagation to the parent
page while still allowing HiGlass to handle zoom interactions. This fixes
the issue where scrolling to zoom in the HiGlass widget would also scroll
the Jupyter notebook page, particularly when running notebooks in VS Code.
The fix uses stopPropagation() with passive: false to intercept wheel
events at the widget container level before they bubble up to the notebook.1 parent ca5fb56 commit c0def59
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
276 | 282 | | |
277 | 283 | | |
278 | 284 | | |
| |||
0 commit comments