Merge pull request 'dev' (#228) from dev into dev-deploy
Reviewed-on: #228
This commit is contained in:
commit
8965137a86
@ -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({
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user