@leafer-ui/interaction-miniapp 1.0.0-rc.30 → 1.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/interaction-miniapp",
3
- "version": "1.0.0-rc.30",
3
+ "version": "1.0.1",
4
4
  "description": "@leafer-ui/interaction-miniapp",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer-ui/core": "1.0.0-rc.30"
25
+ "@leafer-ui/core": "1.0.1"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.0-rc.30"
28
+ "@leafer/interface": "1.0.1"
29
29
  }
30
30
  }
@@ -92,7 +92,7 @@ export class Interaction extends InteractionBase {
92
92
 
93
93
  // multiTouch
94
94
  protected multiTouchStart(e: TouchEvent): void {
95
- this.useMultiTouch = (e.touches.length >= 2)
95
+ this.useMultiTouch = (e.touches.length > 1)
96
96
  this.touches = this.useMultiTouch ? this.getTouches(e.touches) : undefined
97
97
  if (this.useMultiTouch) this.pointerCancel()
98
98
  }
@@ -14,6 +14,7 @@ export const PointerEventHelper = {
14
14
  width: 1,
15
15
  height: 1,
16
16
  pointerType: 'touch',
17
+ multiTouch: e.touches.length > 1,
17
18
  pressure: touch.force || 1,
18
19
  }
19
20
  },