zingtouch icon indicating copy to clipboard operation
zingtouch copied to clipboard

Pan doesn't emit events when I drag outside of the window

Open hackhat opened this issue 7 years ago • 2 comments
trafficstars

Let's say I start dragging something inside the window, but then I move my mouse outside the window it stops the pan event.

Hammerjs for example still emits new events even if the mouse is outside of the window.

hackhat avatar Aug 24 '18 06:08 hackhat

Interesting. I'm still new to the codebase here, but this seems like an oversight. This will be because hammerjs adds some event listeners to the window. It might be smart to do something similar here. My instinct was to say that you could work around this by using the window as your Region, but that won't work because ZingTouch currently assumes that the Region will be an Element, so trying it will throw exceptions. This should be fixed.

mvanderkamp avatar Aug 24 '18 17:08 mvanderkamp

yeah, thanks

hackhat avatar Aug 24 '18 18:08 hackhat