mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
fix(timeline-event): fixed overflowed buttons, event expansion on focus
This commit is contained in:
1 parent
4917993390
commit
9a0be03f66
4 files changed
+66
-34
No files matched your search
@@ -67,6 +67,19 @@ export default {
|
||||
* Do not prevent propagation to trigger cell mousedown which highlights the cell if not highlighted.
|
||||
*/
|
||||
onMouseDown(e, touch = false) {
|
||||
let targetElement
|
||||
|
||||
if (e.target.nodeName == 'BUTTON') {
|
||||
targetElement = e.target
|
||||
} else if (e.srcElement.nodeName == 'IMG') {
|
||||
targetElement = e.target.parentElement
|
||||
}
|
||||
|
||||
if (targetElement?.classList?.contains('v-btn__content') || e?.target?.nodeName == 'BUTTON') {
|
||||
e.preventDefault()
|
||||
return
|
||||
}
|
||||
|
||||
// Prevent a double mouse down on touch devices.
|
||||
if ("ontouchstart" in window && !touch) return false;
|
||||
const { clickHoldAnEvent, focusAnEvent, resizeAnEvent, dragAnEvent } =
|
||||
|
||||
Reference in new issue
Block a user