Compare commits
No commits in common. "fdbedb23a413eb41495a97b8b4cbe4afa97f2bc6" and "9655d2dc59d99de52c2e31aab4a9a8b6b15aadc2" have entirely different histories.
fdbedb23a4
...
9655d2dc59
@ -102,7 +102,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
|||||||
const pointer = getIntersectMousePoint(e)
|
const pointer = getIntersectMousePoint(e)
|
||||||
|
|
||||||
surfaceShapePolygons.forEach((surface) => {
|
surfaceShapePolygons.forEach((surface) => {
|
||||||
if (surface.inPolygonImproved({ x: pointer.x, y: pointer.y })) {
|
if (surface.inPolygon({ x: pointer.x, y: pointer.y })) {
|
||||||
selectedSurface = surface
|
selectedSurface = surface
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -212,7 +212,7 @@ export function useObjectBatch({ isHidden, setIsHidden }) {
|
|||||||
const pointer = getIntersectMousePoint(e)
|
const pointer = getIntersectMousePoint(e)
|
||||||
|
|
||||||
surfaceShapePolygons.forEach((surface) => {
|
surfaceShapePolygons.forEach((surface) => {
|
||||||
if (surface.inPolygonImproved({ x: pointer.x, y: pointer.y })) {
|
if (surface.inPolygon({ x: pointer.x, y: pointer.y })) {
|
||||||
selectedSurface = surface
|
selectedSurface = surface
|
||||||
|
|
||||||
rect = new fabric.Rect({
|
rect = new fabric.Rect({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user