Comparing version
@@ -124,5 +124,5 @@ "use strict"; | ||
if (['top', 'bottom'].includes(dir)) { | ||
return true; | ||
return 1; | ||
} | ||
return false; | ||
return 0; | ||
}, (dir) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -137,5 +137,5 @@ this.bindGestureText = dir.slice(0, 1).toUpperCase() + dir.slice(1); | ||
if (['top', 'bottom', 'left', 'right'].includes(dir)) { | ||
return true; | ||
return 1; | ||
} | ||
return false; | ||
return 0; | ||
}, (dir) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -142,0 +142,0 @@ this.bindGestureWheelText = dir.slice(0, 1).toUpperCase() + dir.slice(1); |
@@ -27,3 +27,3 @@ "use strict"; | ||
exports.zip = exports.tool = exports.theme = exports.task = exports.native = exports.fs = exports.form = exports.dom = exports.core = exports.control = exports.vue = exports.hasFrame = exports.isImmersion = exports.getPlatform = exports.isNative = exports.getVersion = void 0; | ||
const version = '3.2.3'; | ||
const version = '3.2.4'; | ||
function getVersion() { | ||
@@ -30,0 +30,0 @@ return version; |
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
const version = '3.2.3'; | ||
const version = '3.2.4'; | ||
export function getVersion(): string { | ||
@@ -19,0 +19,0 @@ return version; |
@@ -881,3 +881,10 @@ "use strict"; | ||
if (first > -30) { | ||
before(e, dir); | ||
const rtn = before(e, dir); | ||
if (rtn === 1) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
} | ||
else if (rtn === -1) { | ||
e.stopPropagation(); | ||
} | ||
--first; | ||
@@ -906,3 +913,11 @@ } | ||
} | ||
if (!before(e, dir)) { | ||
const rtn = before(e, dir); | ||
if (rtn === 1) { | ||
e.stopPropagation(); | ||
e.preventDefault(); | ||
} | ||
else { | ||
if (rtn === -1) { | ||
e.stopPropagation(); | ||
} | ||
first = -1; | ||
@@ -1033,4 +1048,15 @@ return; | ||
} | ||
if (!before(oe, gestureWheel.dir)) { | ||
gestureWheel.done = true; | ||
const rtn = before(oe, gestureWheel.dir); | ||
if (rtn === 1) { | ||
oe.stopPropagation(); | ||
oe.preventDefault(); | ||
} | ||
else { | ||
if (rtn === -1) { | ||
oe.stopPropagation(); | ||
gestureWheel.done = true; | ||
} | ||
else { | ||
gestureWheel.dir = ''; | ||
} | ||
return; | ||
@@ -1037,0 +1063,0 @@ } |
{ | ||
"name": "clickgo", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"description": "Background interface, software interface, mobile phone APP interface operation library.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -31,3 +31,3 @@ # ClickGo | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.4.9/dist/loader.min.js?path=index&npm={'clickgo':'3.2.3'}"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.4.9/dist/loader.min.js?path=index&npm={'clickgo':'3.2.4'}"></script> | ||
``` | ||
@@ -34,0 +34,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1250466
0.17%26502
0.2%