@antv/g-mobile
Advanced tools
Comparing version 0.0.1-beta.18 to 0.0.2
@@ -85,2 +85,9 @@ import Hammer, { TouchInput } from 'g6-hammerjs'; | ||
if (e.type === 'panstart') { | ||
// 兜底, hammer解析的事件可能缺失一次panend,所以做个兜底 | ||
if (_this.dragging) { | ||
_this.draggingShape = null; | ||
_this.dragging = false; | ||
_this.panstartShape = null; | ||
_this.panstartPoint = null; | ||
} | ||
_this._onpanstart(pointInfo, shape, e); | ||
@@ -87,0 +94,0 @@ } |
@@ -87,2 +87,9 @@ "use strict"; | ||
if (e.type === 'panstart') { | ||
// 兜底, hammer解析的事件可能缺失一次panend,所以做个兜底 | ||
if (_this.dragging) { | ||
_this.draggingShape = null; | ||
_this.dragging = false; | ||
_this.panstartShape = null; | ||
_this.panstartPoint = null; | ||
} | ||
_this._onpanstart(pointInfo, shape, e); | ||
@@ -89,0 +96,0 @@ } |
{ | ||
"name": "@antv/g-mobile", | ||
"version": "0.0.1-beta.18", | ||
"version": "0.0.2", | ||
"description": "A mobile canvas library which providing 2d", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -102,2 +102,9 @@ import Hammer, { TouchInput } from 'g6-hammerjs'; | ||
if (e.type === 'panstart') { | ||
// 兜底, hammer解析的事件可能缺失一次panend,所以做个兜底 | ||
if (this.dragging) { | ||
this.draggingShape = null; | ||
this.dragging = false; | ||
this.panstartShape = null; | ||
this.panstartPoint = null; | ||
} | ||
this._onpanstart(pointInfo, shape, e); | ||
@@ -104,0 +111,0 @@ } |
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
1963767
13134