Merge pull request 'dev' (#228) from dev into dev-deploy

Reviewed-on: #228
This commit is contained in:
ysCha 2025-07-22 15:12:22 +09:00
commit 8965137a86

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