@antv/g-mobile
Advanced tools
Comparing version 0.0.1-beta.14 to 0.0.1-beta.15
@@ -316,3 +316,11 @@ import { __extends } from "tslib"; | ||
var ev = event.srcEvent; | ||
var clientInfo = ev.touches[0]; | ||
var clientInfo = null; | ||
if (ev.touches) { | ||
if (ev.type === 'touchend') { | ||
clientInfo = ev.changedTouches[0]; | ||
} | ||
else { | ||
clientInfo = ev.touches[0]; | ||
} | ||
} | ||
if (!clientInfo) { | ||
@@ -319,0 +327,0 @@ return {}; |
@@ -318,3 +318,11 @@ "use strict"; | ||
var ev = event.srcEvent; | ||
var clientInfo = ev.touches[0]; | ||
var clientInfo = null; | ||
if (ev.touches) { | ||
if (ev.type === 'touchend') { | ||
clientInfo = ev.changedTouches[0]; | ||
} | ||
else { | ||
clientInfo = ev.touches[0]; | ||
} | ||
} | ||
if (!clientInfo) { | ||
@@ -321,0 +329,0 @@ return {}; |
{ | ||
"name": "@antv/g-mobile", | ||
"version": "0.0.1-beta.14", | ||
"version": "0.0.1-beta.15", | ||
"description": "A mobile canvas library which providing 2d", | ||
@@ -55,3 +55,3 @@ "main": "lib/index.js", | ||
"escape-string-regexp": "^4.0.0", | ||
"g6-hammerjs": "^0.0.8", | ||
"g6-hammerjs": "^0.0.9", | ||
"gl-matrix": "^3.0.0", | ||
@@ -58,0 +58,0 @@ "supports-color": "^8.1.0", |
@@ -339,3 +339,11 @@ import { AbstractCanvas, CanvasCfg, Point } from '@antv/g-base'; | ||
const ev: Event = event.srcEvent; | ||
let clientInfo = (ev as TouchEvent).touches[0]; | ||
let clientInfo = null; | ||
if ((ev as TouchEvent).touches) { | ||
if (ev.type === 'touchend') { | ||
clientInfo = (ev as TouchEvent).changedTouches[0]; | ||
} else { | ||
clientInfo = (ev as TouchEvent).touches[0]; | ||
} | ||
} | ||
if (!clientInfo) { | ||
@@ -342,0 +350,0 @@ return {}; |
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1965193
13162
+ Addedg6-hammerjs@0.0.9(transitive)
- Removedg6-hammerjs@0.0.8(transitive)
Updatedg6-hammerjs@^0.0.9