dev #229

Merged
ysCha merged 2 commits from dev into prd-deploy 2025-07-22 15:12:41 +09:00

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.inPolygon({ x: pointer.x, y: pointer.y })) { if (surface.inPolygonImproved({ 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.inPolygon({ x: pointer.x, y: pointer.y })) { if (surface.inPolygonImproved({ x: pointer.x, y: pointer.y })) {
selectedSurface = surface selectedSurface = surface
rect = new fabric.Rect({ rect = new fabric.Rect({