@leafer-ui/interaction 2.1.7 → 2.1.8

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.
Files changed (2) hide show
  1. package/package.json +6 -6
  2. package/src/Dragger.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/interaction",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
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.1.7",
26
- "@leafer-ui/draw": "2.1.7",
27
- "@leafer-ui/event": "2.1.7"
25
+ "@leafer/core": "2.1.8",
26
+ "@leafer-ui/draw": "2.1.8",
27
+ "@leafer-ui/event": "2.1.8"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "2.1.7",
31
- "@leafer-ui/interface": "2.1.7"
30
+ "@leafer/interface": "2.1.8",
31
+ "@leafer-ui/interface": "2.1.8"
32
32
  }
33
33
  }
package/src/Dragger.ts CHANGED
@@ -131,7 +131,7 @@ export class Dragger {
131
131
  if (leaf.draggable) {
132
132
  const axisDrag = isString(leaf.draggable)
133
133
  const move = DragEvent.getValidMove(leaf, this.dragStartPoints[leaf.innerId], { x: totalX, y: totalY }, checkLimitMove || axisDrag)
134
- if (dragLimitAnimate && !axisDrag && isDragEnd) LeafHelper.animateMove(leaf, move, isNumber(dragLimitAnimate) ? dragLimitAnimate : 0.3)
134
+ if (dragLimitAnimate && !axisDrag && isDragEnd) LeafHelper.animateMove(leaf, move, isNumber(dragLimitAnimate) ? dragLimitAnimate : 0.3, () => leaf.emit(DragEvent.ANIMATE))
135
135
  else leaf.move(move)
136
136
  }
137
137
  })