Compare commits
3 Commits
9655d2dc59
...
fdbedb23a4
| Author | SHA1 | Date | |
|---|---|---|---|
| fdbedb23a4 | |||
| ca0620bd23 | |||
| d52fdb23a1 |
@ -102,7 +102,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
||||
const pointer = getIntersectMousePoint(e)
|
||||
|
||||
surfaceShapePolygons.forEach((surface) => {
|
||||
if (surface.inPolygon({ x: pointer.x, y: pointer.y })) {
|
||||
if (surface.inPolygonImproved({ x: pointer.x, y: pointer.y })) {
|
||||
selectedSurface = surface
|
||||
}
|
||||
})
|
||||
@ -212,7 +212,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
||||
const pointer = getIntersectMousePoint(e)
|
||||
|
||||
surfaceShapePolygons.forEach((surface) => {
|
||||
if (surface.inPolygon({ x: pointer.x, y: pointer.y })) {
|
||||
if (surface.inPolygonImproved({ x: pointer.x, y: pointer.y })) {
|
||||
selectedSurface = surface
|
||||
|
||||
rect = new fabric.Rect({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user