konva icon indicating copy to clipboard operation
konva copied to clipboard

Cannot use the mouse wheel while dragging and element over a Konva element

Open pf-costa opened this issue 1 year ago • 3 comments

If I start to drag an element, move it over a Konva element and use the mouse wheel, I'm unable to scroll the window.

Reproducible example: https://jsbin.com/vexexoqihe/edit?html,js,output

pf-costa avatar Jun 11 '24 11:06 pf-costa

I don't have a mouse with a wheel to test, so I will need a help from someone to take a look into this.

lavrton avatar Jun 12 '24 17:06 lavrton

Thanks for the reply @lavrton 🙏 You can also reproduce the issue with a trackpad/touchpad. The user is not able to scroll the page if he is dragging an element and it is over a Konva element.

pf-costa avatar Jun 12 '24 17:06 pf-costa

I can reproduce it. But I am not sure what is the root of the issue. I don't see any event.preventDefault() calls. Also it works ok in Firefox.

lavrton avatar Jun 17 '24 22:06 lavrton