@leafer-ui/interaction 2.0.1 → 2.0.2
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 +6 -6
- package/src/Interaction.ts +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interaction",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "@leafer-ui/interaction",
|
|
5
5
|
"author": "Chao (Leafer) Wan",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"leaferjs"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@leafer/core": "2.0.
|
|
26
|
-
"@leafer-ui/draw": "2.0.
|
|
27
|
-
"@leafer-ui/event": "2.0.
|
|
25
|
+
"@leafer/core": "2.0.2",
|
|
26
|
+
"@leafer-ui/draw": "2.0.2",
|
|
27
|
+
"@leafer-ui/event": "2.0.2"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@leafer/interface": "2.0.
|
|
31
|
-
"@leafer-ui/interface": "2.0.
|
|
30
|
+
"@leafer/interface": "2.0.2",
|
|
31
|
+
"@leafer-ui/interface": "2.0.2"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/src/Interaction.ts
CHANGED
|
@@ -103,7 +103,10 @@ export class InteractionBase implements IInteraction {
|
|
|
103
103
|
|
|
104
104
|
this.downTime = Date.now()
|
|
105
105
|
|
|
106
|
-
this.emit(PointerEvent.BEFORE_DOWN, data)
|
|
106
|
+
this.emit(PointerEvent.BEFORE_DOWN, data)
|
|
107
|
+
|
|
108
|
+
if (data.path.needUpdate) this.updateDownData(data) // downData maybe changed
|
|
109
|
+
|
|
107
110
|
this.emit(PointerEvent.DOWN, data)
|
|
108
111
|
|
|
109
112
|
if (PointerButton.left(data)) {
|