@leafer-ui/interaction 1.0.0-rc.27 → 1.0.0-rc.28

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/interaction",
3
- "version": "1.0.0-rc.27",
3
+ "version": "1.0.0-rc.28",
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": "1.0.0-rc.27",
26
- "@leafer-ui/draw": "1.0.0-rc.27",
27
- "@leafer-ui/event": "1.0.0-rc.27"
25
+ "@leafer/core": "1.0.0-rc.28",
26
+ "@leafer-ui/draw": "1.0.0-rc.28",
27
+ "@leafer-ui/event": "1.0.0-rc.28"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "1.0.0-rc.27",
31
- "@leafer-ui/interface": "1.0.0-rc.27"
30
+ "@leafer/interface": "1.0.0-rc.28",
31
+ "@leafer-ui/interface": "1.0.0-rc.28"
32
32
  }
33
33
  }
@@ -421,7 +421,7 @@ export class InteractionBase implements IInteraction {
421
421
  }
422
422
 
423
423
  public updateCursor(data?: IPointerEvent): void {
424
- if (this.config.cursor.stop || !this.config.pointer.hover) return
424
+ if (!this.config.cursor || !this.config.pointer.hover) return
425
425
 
426
426
  if (!data) {
427
427
  this.updateHoverData()
package/src/config.ts CHANGED
@@ -19,6 +19,6 @@ export const config: IInteractionConfig = {
19
19
  swipeDistance: 20,
20
20
  preventDefaultMenu: true
21
21
  },
22
- cursor: {},
22
+ cursor: true,
23
23
  keyEvent: true
24
24
  }