Fix timeline drag

pull/37/head
Varun Patil 2022-08-15 17:20:08 +00:00
parent 64b80931ab
commit bd590a5601
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,7 @@
<div ref="timelineScroll" class="timeline-scroll" <div ref="timelineScroll" class="timeline-scroll"
@mousemove="timelineHover" @mousemove="timelineHover"
@mouseleave="timelineLeave" @mouseleave="timelineLeave"
@click="timelineClick"> @mousedown="timelineClick">
<span class="cursor" <span class="cursor"
v-bind:style="{ top: timelineCursorY + 'px' }"></span> v-bind:style="{ top: timelineCursorY + 'px' }"></span>
<span class="cursor" <span class="cursor"
@ -261,6 +261,9 @@ export default {
/** Handle mouse hover on right timeline */ /** Handle mouse hover on right timeline */
timelineHover(event) { timelineHover(event) {
if (event.buttons) {
this.timelineClick(event);
}
this.timelineHoverCursorY = event.offsetY; this.timelineHoverCursorY = event.offsetY;
}, },