community-edition icon indicating copy to clipboard operation
community-edition copied to clipboard

"mousedown" event doesn't fire for left-click when the endpoint is a source

Open DedicatedManagers opened this issue 8 years ago • 5 comments

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/

DedicatedManagers avatar Dec 21 '16 05:12 DedicatedManagers

Seems like a bug to me; can reproduce with your jsfiddle.

OlsonDev avatar Dec 22 '16 22:12 OlsonDev

bump. Any hellp from @sporritt ?

DedicatedManagers avatar Jan 16 '17 17:01 DedicatedManagers

+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.

FlorianGoussin avatar Feb 17 '17 23:02 FlorianGoussin

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

MohammedAbdulMateen avatar Jun 27 '18 10:06 MohammedAbdulMateen

Any update ??

sandeep737462 avatar Jul 19 '23 08:07 sandeep737462