@antv/g-mobile
Advanced tools
Comparing version 0.0.1-beta.16 to 0.0.1-beta.17
@@ -246,5 +246,3 @@ import Hammer, { TouchInput } from 'g6-hammerjs'; | ||
} | ||
else { | ||
this._emitEvent('panend', event, pointInfo, shape); | ||
} | ||
this._emitEvent('panend', event, pointInfo, shape); | ||
this.panstartShape = null; | ||
@@ -309,11 +307,5 @@ this.panstartPoint = null; | ||
} | ||
else { | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
} | ||
else { | ||
// 始终触发移动 | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
} | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
}; | ||
@@ -320,0 +312,0 @@ // 触发事件 |
@@ -248,5 +248,3 @@ "use strict"; | ||
} | ||
else { | ||
this._emitEvent('panend', event, pointInfo, shape); | ||
} | ||
this._emitEvent('panend', event, pointInfo, shape); | ||
this.panstartShape = null; | ||
@@ -311,11 +309,5 @@ this.panstartPoint = null; | ||
} | ||
else { | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
} | ||
else { | ||
// 始终触发移动 | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
} | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
}; | ||
@@ -322,0 +314,0 @@ // 触发事件 |
{ | ||
"name": "@antv/g-mobile", | ||
"version": "0.0.1-beta.16", | ||
"version": "0.0.1-beta.17", | ||
"description": "A mobile canvas library which providing 2d", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -284,5 +284,5 @@ import Hammer, { TouchInput } from 'g6-hammerjs'; | ||
this._afterDrag(draggingShape, pointInfo, event); | ||
} else { | ||
this._emitEvent('panend', event, pointInfo, shape); | ||
} | ||
this._emitEvent('panend', event, pointInfo, shape); | ||
this.panstartShape = null; | ||
@@ -345,10 +345,7 @@ this.panstartPoint = null; | ||
} | ||
} else { | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
} else { | ||
// 始终触发移动 | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
} | ||
this._emitEvent('panmove', event, pointInfo, shape); | ||
} | ||
@@ -355,0 +352,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
1964839
13150