scroller: fix interactend call on outside scroller
parent
b5bdc0b0bf
commit
9a6814c0c0
|
@ -15,6 +15,7 @@
|
||||||
@touchmove.prevent="touchmove"
|
@touchmove.prevent="touchmove"
|
||||||
@touchstart.passive="interactstart"
|
@touchstart.passive="interactstart"
|
||||||
@touchend.passive="interactend"
|
@touchend.passive="interactend"
|
||||||
|
@touchcancel.passive="interactend"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="cursor st"
|
class="cursor st"
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
@touchmove.prevent="touchmove"
|
@touchmove.prevent="touchmove"
|
||||||
@touchstart.passive="interactstart"
|
@touchstart.passive="interactstart"
|
||||||
@touchend.passive="interactend"
|
@touchend.passive="interactend"
|
||||||
|
@touchcancel.passive="interactend"
|
||||||
>
|
>
|
||||||
<div class="text">{{ hoverCursorText }}</div>
|
<div class="text">{{ hoverCursorText }}</div>
|
||||||
<div class="icon"><ScrollIcon :size="22" /></div>
|
<div class="icon"><ScrollIcon :size="22" /></div>
|
||||||
|
@ -425,6 +427,7 @@ export default class ScrollerManager extends Mixins(GlobalMixin) {
|
||||||
|
|
||||||
/** Handle mouse leave */
|
/** Handle mouse leave */
|
||||||
private mouseleave() {
|
private mouseleave() {
|
||||||
|
this.interactend();
|
||||||
this.moveHoverCursor(this.cursorY);
|
this.moveHoverCursor(this.cursorY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue