Search and Top Navigation
#15318 new bug ()
Opened October 25, 2018 07:48PM UTC
Last modified November 01, 2018 03:29PM UTC
preventDefault in mousedown suppresses other interactions
Reported by: | deepakanand | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.mouse | Version: | 1.12.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
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.
Attachments (0)
Change History (2)
Changed October 25, 2018 07:49PM UTC by comment:1
Changed November 01, 2018 03:29PM UTC by comment:2
description: | 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 its 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 → 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. |
---|
Since there are no code comments, i am curious to understand the purpose of the many preventDefaults in the code