davetayls/jquery.kinetic

Right click causes Kinetic to think mouse is still down

Opened this issue · 0 comments

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();
});