@leafer-ui/core 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/core.cjs +10 -7
- package/lib/core.cjs.map +1 -1
- package/lib/core.esm.js +10 -7
- package/lib/core.esm.js.map +1 -1
- package/lib/core.esm.min.js +1 -1
- package/lib/core.esm.min.js.map +1 -1
- package/lib/core.min.cjs +1 -1
- package/lib/core.min.cjs.map +1 -1
- package/package.json +6 -6
package/lib/core.cjs
CHANGED
|
@@ -789,8 +789,7 @@ class InteractionBase {
|
|
|
789
789
|
if (this.downData) {
|
|
790
790
|
const canDrag = core.PointHelper.getDistance(this.downData, data) > this.p.dragDistance;
|
|
791
791
|
if (canDrag) {
|
|
792
|
-
|
|
793
|
-
this.pointerWaitCancel();
|
|
792
|
+
this.pointerWaitCancel();
|
|
794
793
|
this.waitRightTap = false;
|
|
795
794
|
}
|
|
796
795
|
this.dragger.checkDrag(data, canDrag);
|
|
@@ -1072,9 +1071,11 @@ class InteractionBase {
|
|
|
1072
1071
|
this.waitTap = true;
|
|
1073
1072
|
}
|
|
1074
1073
|
tapWaitCancel() {
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1074
|
+
if (this.waitTap) {
|
|
1075
|
+
clearTimeout(this.tapTimer);
|
|
1076
|
+
this.waitTap = false;
|
|
1077
|
+
this.tapCount = 0;
|
|
1078
|
+
}
|
|
1078
1079
|
}
|
|
1079
1080
|
longPressWait(data) {
|
|
1080
1081
|
clearTimeout(this.longPressTimer);
|
|
@@ -1094,8 +1095,10 @@ class InteractionBase {
|
|
|
1094
1095
|
return hasLong;
|
|
1095
1096
|
}
|
|
1096
1097
|
longPressWaitCancel() {
|
|
1097
|
-
|
|
1098
|
-
|
|
1098
|
+
if (this.longPressTimer) {
|
|
1099
|
+
clearTimeout(this.longPressTimer);
|
|
1100
|
+
this.longPressed = false;
|
|
1101
|
+
}
|
|
1099
1102
|
}
|
|
1100
1103
|
__onResize() {
|
|
1101
1104
|
const { dragOut } = this.m;
|