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