hi @anthonysalamin why you do not use only $("#lightbox-project").dblclick();. Is there any reason you have to cancel the click in jQuery? I was just today use it for different things but maybe MDN Doc will help but it is JS.
or
or
or
set two listeners:
return on click
action on dblclick
or …
EDIT: what I have now read on W3C there is this definition:
this event type MUST be dispatched after the event type click if a click and double click occur simultaneously, and after the event type mouseup otherwise.
So dblclick must be triggered afterclick but in your code is dblclick part of click
hi @anthonysalamin it is hard to guess and help without any context on what you are trying to achieve and what is in the code. As I have mentioned you have “double-click” INSIDE the “click” function but the documentation says it has to be triggered AFTER. That said my pure guess will be moving $("#lightbox-project").dblclick(); from click callback. Something like this.