clickgo 3.16.15 → 3.16.17

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/README.md CHANGED
@@ -25,7 +25,7 @@ Load the module loader first, and then load it using the module loader.
25
25
  **index.html**
26
26
 
27
27
  ```html
28
- <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.15'}"></script>
28
+ <script src="https://cdn.jsdelivr.net/npm/@litert/loader@3.5.8/dist/loader.min.js?path=index&npm={'clickgo':'3.16.17'}"></script>
29
29
  ```
30
30
 
31
31
  **index.js**
package/dist/clickgo.js CHANGED
@@ -39,7 +39,7 @@ exports.isNative = isNative;
39
39
  exports.getPlatform = getPlatform;
40
40
  exports.isImmersion = isImmersion;
41
41
  exports.hasFrame = hasFrame;
42
- const version = '3.16.15';
42
+ const version = '3.16.16';
43
43
  function getVersion() {
44
44
  return version;
45
45
  }
package/dist/clickgo.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- const version = '3.16.15';
16
+ const version = '3.16.17';
17
17
  export function getVersion(): string {
18
18
  return version;
19
19
  }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/dist/lib/dom.js CHANGED
@@ -154,7 +154,7 @@ function hasTouchButMouse(e) {
154
154
  return true;
155
155
  }
156
156
  const now = Date.now();
157
- if (now - lastTouchTime < 1000 * 60) {
157
+ if (now - lastTouchTime < 60000) {
158
158
  return true;
159
159
  }
160
160
  return false;
@@ -1650,7 +1650,7 @@ window.addEventListener('keyup', function (e) {
1650
1650
  core.trigger('keyup', e);
1651
1651
  });
1652
1652
  function bindMove(e, opt) {
1653
- var _a, _b, _c, _d;
1653
+ var _a, _b, _c, _d, _e;
1654
1654
  if (hasTouchButMouse(e)) {
1655
1655
  return {
1656
1656
  'left': 0,
@@ -1660,7 +1660,7 @@ function bindMove(e, opt) {
1660
1660
  };
1661
1661
  }
1662
1662
  exports.is.move = true;
1663
- setGlobalCursor(opt.cursor ? opt.cursor : getComputedStyle(e.target).cursor);
1663
+ setGlobalCursor((_a = opt.cursor) !== null && _a !== void 0 ? _a : getComputedStyle(e.target).cursor);
1664
1664
  let tx = e instanceof MouseEvent ? e.clientX : e.touches[0].clientX;
1665
1665
  let ty = e instanceof MouseEvent ? e.clientY : e.touches[0].clientY;
1666
1666
  let left, top, right, bottom;
@@ -1679,10 +1679,10 @@ function bindMove(e, opt) {
1679
1679
  }
1680
1680
  else {
1681
1681
  const area = core.getAvailArea();
1682
- left = (_a = opt.left) !== null && _a !== void 0 ? _a : area.left;
1683
- top = (_b = opt.top) !== null && _b !== void 0 ? _b : area.top;
1684
- right = (_c = opt.right) !== null && _c !== void 0 ? _c : area.width;
1685
- bottom = (_d = opt.bottom) !== null && _d !== void 0 ? _d : area.height;
1682
+ left = (_b = opt.left) !== null && _b !== void 0 ? _b : area.left;
1683
+ top = (_c = opt.top) !== null && _c !== void 0 ? _c : area.top;
1684
+ right = (_d = opt.right) !== null && _d !== void 0 ? _d : area.width;
1685
+ bottom = (_e = opt.bottom) !== null && _e !== void 0 ? _e : area.height;
1686
1686
  }
1687
1687
  if (opt.offsetLeft) {
1688
1688
  left += opt.offsetLeft;
package/dist/lib/dom.ts CHANGED
@@ -100,8 +100,8 @@ export function hasTouchButMouse(e: MouseEvent | TouchEvent | PointerEvent): boo
100
100
  return true;
101
101
  }
102
102
  const now = Date.now();
103
- if (now - lastTouchTime < 1_000 * 60) {
104
- // --- 当前是 mouse 但是 10000ms 内有 touch start ---
103
+ if (now - lastTouchTime < 60_000) {
104
+ // --- 当前是 mouse 但是 60_000ms 内有 touch start ---
105
105
  return true;
106
106
  }
107
107
  return false;
@@ -2094,7 +2094,7 @@ export function bindMove(e: MouseEvent | TouchEvent, opt: types.IBindMoveOptions
2094
2094
  };
2095
2095
  }
2096
2096
  is.move = true;
2097
- setGlobalCursor(opt.cursor ? opt.cursor : getComputedStyle(e.target as Element).cursor);
2097
+ setGlobalCursor(opt.cursor ?? getComputedStyle(e.target as Element).cursor);
2098
2098
  /** --- 上一次的 x 坐标 --- */
2099
2099
  let tx: number = e instanceof MouseEvent ? e.clientX : e.touches[0].clientX;
2100
2100
  /** --- 上一次的 y 坐标 --- */
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clickgo",
3
- "version": "3.16.15",
3
+ "version": "3.16.17",
4
4
  "description": "Background interface, software interface, mobile phone APP interface operation library.",
5
5
  "keywords": [
6
6
  "deskrt",
@@ -19,11 +19,13 @@
19
19
  },
20
20
  "devDependencies": {
21
21
  "@litert/eslint-plugin-rules": "^0.3.1",
22
- "@litert/loader": "^3.5.8",
23
- "@types/node": "^24.0.1",
22
+ "@types/node": "^24.0.3",
24
23
  "electron": "^36.4.0",
25
- "jszip": "^3.10.1",
26
- "terser": "^5.42.0",
24
+ "terser": "^5.43.0",
27
25
  "typescript": "^5.8.3"
26
+ },
27
+ "dependencies": {
28
+ "@litert/loader": "^3.5.9",
29
+ "jszip": "^3.10.1"
28
30
  }
29
31
  }