@leafer/selector 1.9.4 → 1.9.6

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 +3 -3
  2. package/src/Picker.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/selector",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "@leafer/selector",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.9.4"
25
+ "@leafer/core": "1.9.6"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.9.4"
28
+ "@leafer/interface": "1.9.6"
29
29
  }
30
30
  }
package/src/Picker.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ILeaf, ILeafList, IPointData, IRadiusPointData, IPickResult, IPickOptions, ISelector, IPickBottom, IPicker } from '@leafer/interface'
1
+ import { ILeaf, ILeafList, IPointData, IRadiusPointData, IPickResult, IPickOptions, ISelector, IPickBottom, IPicker, ILeaferBase } from '@leafer/interface'
2
2
  import { BoundsHelper, LeafList, LeafHelper } from '@leafer/core'
3
3
 
4
4
 
@@ -96,7 +96,7 @@ export class Picker implements IPicker {
96
96
  item = path.list[i]
97
97
  if (!item.__.hittable) break
98
98
  hittablePath.addAt(item, 0)
99
- if (!item.__.hitChildren) break
99
+ if (!item.__.hitChildren || (item.isLeafer && (item as ILeaferBase).mode === 'draw')) break
100
100
  }
101
101
  return hittablePath
102
102
  }