Skip to content
Snippets Groups Projects
Commit d20aa819 authored by Дмитрий Малюгин's avatar Дмитрий Малюгин :clock4:
Browse files

refactor: add setting "isClickHold" to false on "pointerleave" event

parent 5126684f
No related branches found
No related tags found
1 merge request!6Finish "UI-library v1.0.0"
...@@ -103,6 +103,7 @@ const onPointerDown = ($event: MouseEvent) => { ...@@ -103,6 +103,7 @@ const onPointerDown = ($event: MouseEvent) => {
@pointerdown.prevent="!buttons && onPointerDown($event)" @pointerdown.prevent="!buttons && onPointerDown($event)"
@pointermove="isClickHold ? setNewValue($event) : ''" @pointermove="isClickHold ? setNewValue($event) : ''"
@pointerup="isClickHold = false" @pointerup="isClickHold = false"
@pointerleave="isClickHold = false"
class="container containerSize" class="container containerSize"
ref="container" ref="container"
> >
......
...@@ -72,6 +72,7 @@ const onPointerDown = (event: MouseEvent) => { ...@@ -72,6 +72,7 @@ const onPointerDown = (event: MouseEvent) => {
@pointerdown.prevent="onPointerDown($event)" @pointerdown.prevent="onPointerDown($event)"
@pointermove="isClickHold ? setNewValue($event) : ''" @pointermove="isClickHold ? setNewValue($event) : ''"
@pointerup="isClickHold = false" @pointerup="isClickHold = false"
@pointerleave="isClickHold = false"
> >
<div class="active"> <div class="active">
<span v-show="showLabel" class="value">{{ labelBefore }}{{ value }}{{ labelAfter }}</span> <span v-show="showLabel" class="value">{{ labelBefore }}{{ value }}{{ labelAfter }}</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment