Opened 7 weeks ago

Last modified 6 weeks ago

#15318 new bug

preventDefault in mousedown suppresses other interactions

Reported by: Deepak Anand Owned by:
Priority: minor Milestone: none
Component: ui.mouse Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Ryan J Ollos)

This may have been reported before because it seems like such an obvious issue in many cases.

The event.preventDefault call in the ui/widgets/mouse.js module's _mouseDown and _mouseUp handler prevents other standard interactions from taking place.

For example, i have a canvas-like view where there are draggable DOM elements. The canvas-like view is a simple div which needs to be focused when it's clicked on or its children (the draggable DOM elements) are clicked.

Please let me know if you would like to see a codepen/jsfiddle to understand the issue.

Change History (2)

comment:1 Changed 7 weeks ago by Deepak Anand

Since there are no code comments, i am curious to understand the purpose of the many preventDefaults in the code

comment:2 Changed 6 weeks ago by Ryan J Ollos

Description: modified (diff)
Note: See TracTickets for help on using tickets.