Fix timeline drag
parent
64b80931ab
commit
bd590a5601
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue