@leafer-ui/interaction-web 1.0.0-rc.25 → 1.0.0-rc.27

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-web",
3
- "version": "1.0.0-rc.25",
3
+ "version": "1.0.0-rc.27",
4
4
  "description": "@leafer-ui/interaction-web",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,10 +22,10 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.25",
26
- "@leafer-ui/core": "1.0.0-rc.25"
25
+ "@leafer/core": "1.0.0-rc.27",
26
+ "@leafer-ui/core": "1.0.0-rc.27"
27
27
  },
28
28
  "devDependencies": {
29
- "@leafer/interface": "1.0.0-rc.25"
29
+ "@leafer/interface": "1.0.0-rc.27"
30
30
  }
31
31
  }
@@ -291,6 +291,7 @@ export class Interaction extends InteractionBase {
291
291
 
292
292
  // safari
293
293
  protected onGesturestart(e: IGestureEvent): void {
294
+ if (this.useMultiTouch) return
294
295
  this.preventDefaultWheel(e)
295
296
 
296
297
  this.lastGestureScale = 1
@@ -298,6 +299,7 @@ export class Interaction extends InteractionBase {
298
299
  }
299
300
 
300
301
  protected onGesturechange(e: IGestureEvent): void {
302
+ if (this.useMultiTouch) return
301
303
  this.preventDefaultWheel(e)
302
304
 
303
305
  const local = this.getLocal(e)
@@ -316,6 +318,7 @@ export class Interaction extends InteractionBase {
316
318
  }
317
319
 
318
320
  protected onGestureend(e: IGestureEvent): void {
321
+ if (this.useMultiTouch) return
319
322
  this.preventDefaultWheel(e)
320
323
 
321
324
  this.transformEnd()