Capture global mousedown/up event
12 years ago.
I need to capture any mousedown and mouseup event fired on the scheduler.
I've tried just adding an eventlistener to the entire dps container like this:
$("#dps")[0].addEventListener("mousedown", function () { /*TODO*/ });
This works if I press anything but (daypilot)events. When I press the mouse on (daypilot)events the mousedown event won't fire.
How can all mousedown and mouseup events be captured on the scheduler?
The reason I need this behavior is because I need to prevent certain commandCallbacks when a user is interacting (moving or resizing evetns etc.) with the scheduler.
DayPilot