Compare commits

..

No commits in common. "8965137a8618b00c691077c3fd2d3946c84cc09e" and "58423f461a7ef70e2c3e3da1381e4394c5aec685" have entirely different histories.

View File

@ -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({