community-edition
community-edition copied to clipboard
"mousedown" event doesn't fire for left-click when the endpoint is a source
Why is the "mousedown" event suppressed for a left-click when the endpoint is a source?
In the following jsfiddle, you don't get an alert message if you left-click on the endpoint. If you comment out the "isSource" parameter, you'll then get a pop-up for a left click.
A right-click shows an alert in both instances. Just the left-click is suppressed.
Is this a bug or just the way jsPlumb works?
https://jsfiddle.net/a5uoo8x5/
Seems like a bug to me; can reproduce with your jsfiddle.
bump. Any hellp from @sporritt ?
+1 I have the same problem. This example works:
eventName = 'click' pt.bind(eventName, function(endPoint) { console.log(eventName + ' has been triggered') });
But not this one:
eventName = 'mousedown' pt.bind(eventName, function(endPoint) { console.log(eventName + ' has been triggered') });
In the example, click works but not mousedown.
I'm facing a similar issue but in different case, mousedown
doesn't work through $(document).on('mousedown', 'selector', func);
You can find the issue reproduced in this jsfiddle http://jsfiddle.net/u2djkqhs/8/
Could you please help me to fix this problem
Any update ??