Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Right click causes Kinetic to think mouse is still down #106

Open
iamdriz opened this issue Nov 28, 2017 · 0 comments
Open

Right click causes Kinetic to think mouse is still down #106

iamdriz opened this issue Nov 28, 2017 · 0 comments

Comments

@iamdriz
Copy link

iamdriz commented Nov 28, 2017

If you right click on the element with Kinetic bound to and then click onto another window whilst the context menu is open and then left click back onto the element you will find that the plugin acts as though you are still holding down the mouse button. This means that instead of dragging to move the element you can move it freely by just moving the mouse.

My guess is that when you right click and then click onto another window it thinks the event never ended so when you focus again and try to interact the previous event is still lingering...

The only way to fix it (so far), is to prevent right click:

$('.timeline-scroll').on("contextmenu",function(e){
    e.preventDefault();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant