unika-components 1.1.111 → 1.1.113
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/dist/unika-components.css +1979 -1980
- package/dist/unika-components.esm.js +10 -3
- package/dist/unika-components.umd.js +10 -3
- package/package.json +1 -1
|
@@ -30808,7 +30808,6 @@ var script = defineComponent({
|
|
|
30808
30808
|
const scrollStartTime = ref(0);
|
|
30809
30809
|
const scrollStartPosition = ref(0);
|
|
30810
30810
|
const isDragging = ref(false);
|
|
30811
|
-
const isInteractingWithComponent = ref(false);
|
|
30812
30811
|
const clickStartTime = ref(0);
|
|
30813
30812
|
const clickStartY = ref(0);
|
|
30814
30813
|
const isUserPaused = ref(false);
|
|
@@ -30970,6 +30969,7 @@ var script = defineComponent({
|
|
|
30970
30969
|
// handleTouchMove = function() { ... }
|
|
30971
30970
|
// ...
|
|
30972
30971
|
handleTouchStart = (e) => {
|
|
30972
|
+
console.log('handleTouchStart');
|
|
30973
30973
|
const pageId = currentPageId.value;
|
|
30974
30974
|
if (!container.value)
|
|
30975
30975
|
return;
|
|
@@ -31004,6 +31004,7 @@ var script = defineComponent({
|
|
|
31004
31004
|
dragStartScrolls.value[pageId] = 0;
|
|
31005
31005
|
}
|
|
31006
31006
|
handleTouchMove = (e) => {
|
|
31007
|
+
console.log('handleTouchMove');
|
|
31007
31008
|
e.preventDefault();
|
|
31008
31009
|
const pageId = currentPageId.value;
|
|
31009
31010
|
if (!container.value)
|
|
@@ -31039,8 +31040,9 @@ var script = defineComponent({
|
|
|
31039
31040
|
}
|
|
31040
31041
|
};
|
|
31041
31042
|
handleTouchEnd = (e) => {
|
|
31043
|
+
console.log('handleTouchEnd');
|
|
31042
31044
|
currentPageId.value;
|
|
31043
|
-
if (!container.value
|
|
31045
|
+
if (!container.value)
|
|
31044
31046
|
return;
|
|
31045
31047
|
isDragging.value = false;
|
|
31046
31048
|
if (inertiaAnimation.value) {
|
|
@@ -31071,7 +31073,7 @@ var script = defineComponent({
|
|
|
31071
31073
|
};
|
|
31072
31074
|
handleMouseMove = (e) => {
|
|
31073
31075
|
console.log('handleMouseMove');
|
|
31074
|
-
|
|
31076
|
+
e.preventDefault && e.preventDefault();
|
|
31075
31077
|
const pageId = currentPageId.value;
|
|
31076
31078
|
if (!isMousePressing.value)
|
|
31077
31079
|
return;
|
|
@@ -31111,6 +31113,11 @@ var script = defineComponent({
|
|
|
31111
31113
|
console.log('handleMouseUp');
|
|
31112
31114
|
isMousePressing.value = false;
|
|
31113
31115
|
isDragging.value = false;
|
|
31116
|
+
if (inertiaAnimation.value) {
|
|
31117
|
+
cancelAnimationFrame(inertiaAnimation.value);
|
|
31118
|
+
inertiaAnimation.value = undefined;
|
|
31119
|
+
}
|
|
31120
|
+
// 惯性滚动
|
|
31114
31121
|
if (Math.abs(scrollVelocity.value) > 0.1) {
|
|
31115
31122
|
startInertia();
|
|
31116
31123
|
}
|
|
@@ -30815,7 +30815,6 @@
|
|
|
30815
30815
|
const scrollStartTime = vue.ref(0);
|
|
30816
30816
|
const scrollStartPosition = vue.ref(0);
|
|
30817
30817
|
const isDragging = vue.ref(false);
|
|
30818
|
-
const isInteractingWithComponent = vue.ref(false);
|
|
30819
30818
|
const clickStartTime = vue.ref(0);
|
|
30820
30819
|
const clickStartY = vue.ref(0);
|
|
30821
30820
|
const isUserPaused = vue.ref(false);
|
|
@@ -30977,6 +30976,7 @@
|
|
|
30977
30976
|
// handleTouchMove = function() { ... }
|
|
30978
30977
|
// ...
|
|
30979
30978
|
handleTouchStart = (e) => {
|
|
30979
|
+
console.log('handleTouchStart');
|
|
30980
30980
|
const pageId = currentPageId.value;
|
|
30981
30981
|
if (!container.value)
|
|
30982
30982
|
return;
|
|
@@ -31011,6 +31011,7 @@
|
|
|
31011
31011
|
dragStartScrolls.value[pageId] = 0;
|
|
31012
31012
|
}
|
|
31013
31013
|
handleTouchMove = (e) => {
|
|
31014
|
+
console.log('handleTouchMove');
|
|
31014
31015
|
e.preventDefault();
|
|
31015
31016
|
const pageId = currentPageId.value;
|
|
31016
31017
|
if (!container.value)
|
|
@@ -31046,8 +31047,9 @@
|
|
|
31046
31047
|
}
|
|
31047
31048
|
};
|
|
31048
31049
|
handleTouchEnd = (e) => {
|
|
31050
|
+
console.log('handleTouchEnd');
|
|
31049
31051
|
currentPageId.value;
|
|
31050
|
-
if (!container.value
|
|
31052
|
+
if (!container.value)
|
|
31051
31053
|
return;
|
|
31052
31054
|
isDragging.value = false;
|
|
31053
31055
|
if (inertiaAnimation.value) {
|
|
@@ -31078,7 +31080,7 @@
|
|
|
31078
31080
|
};
|
|
31079
31081
|
handleMouseMove = (e) => {
|
|
31080
31082
|
console.log('handleMouseMove');
|
|
31081
|
-
|
|
31083
|
+
e.preventDefault && e.preventDefault();
|
|
31082
31084
|
const pageId = currentPageId.value;
|
|
31083
31085
|
if (!isMousePressing.value)
|
|
31084
31086
|
return;
|
|
@@ -31118,6 +31120,11 @@
|
|
|
31118
31120
|
console.log('handleMouseUp');
|
|
31119
31121
|
isMousePressing.value = false;
|
|
31120
31122
|
isDragging.value = false;
|
|
31123
|
+
if (inertiaAnimation.value) {
|
|
31124
|
+
cancelAnimationFrame(inertiaAnimation.value);
|
|
31125
|
+
inertiaAnimation.value = undefined;
|
|
31126
|
+
}
|
|
31127
|
+
// 惯性滚动
|
|
31121
31128
|
if (Math.abs(scrollVelocity.value) > 0.1) {
|
|
31122
31129
|
startInertia();
|
|
31123
31130
|
}
|