We use a library to prevent the touchpad scroll motion from scrolling the page while the mouse is over the graph because it scrolls the graph time window.
I tried using event.stopPropagation() and event.preventDefault() but both failed but the library mostly works (I disable page scrolling when you mouse over the graph and vice versa). However, if you alt tab away from the control panel while the mouse is over the graph, you can end up with the mouse being perpetually locked.
For the time being, I've exposed the enable/disable page scroll functions to the JS window object so you can call them from the JS console, but it'd be nice to fix this properly without console or page reload.
Some rough ideas:
Are there other events we can listen to to call enablePageScroll() eg when the document loses focus after an alt+tab?
Why is it that mouse over on the graph and out again doesn't re-enable page scroll?
Could we copy/paste some of the library internals into our code and fix it there?
We use a library to prevent the touchpad scroll motion from scrolling the page while the mouse is over the graph because it scrolls the graph time window.
I tried using
event.stopPropagation()
andevent.preventDefault()
but both failed but the library mostly works (I disable page scrolling when you mouse over the graph and vice versa). However, if you alt tab away from the control panel while the mouse is over the graph, you can end up with the mouse being perpetually locked.For the time being, I've exposed the enable/disable page scroll functions to the JS
window
object so you can call them from the JS console, but it'd be nice to fix this properly without console or page reload.Some rough ideas:
enablePageScroll()
eg when the document loses focus after an alt+tab?