fix(timeline-event): fixed overflowed buttons, event expansion on focus

This commit is contained in:
Matej Glasnák committed 2025-06-20 21:54:10 +02:00
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 } =