#6367 Tangent snapping improvements (#6369)

* fix snapping line being culled

* make snap line more grayed out

* make snapping tolerance smaller
This commit is contained in:
Andrew Varga
2025-04-17 14:26:05 +02:00
committed by GitHub
parent 16bbc970ae
commit bab79331cb
2 changed files with 5 additions and 3 deletions

View File

@ -2672,8 +2672,8 @@ export class SceneEntities {
if (prev && ARC_SEGMENT_TYPES.includes(prev.userData.type)) {
const snapDirection = findTangentDirection(prev)
if (snapDirection) {
const SNAP_TOLERANCE_PIXELS = 12 * window.devicePixelRatio
const SNAP_MIN_DISTANCE_PIXELS = 5 * window.devicePixelRatio
const SNAP_TOLERANCE_PIXELS = 8 * window.devicePixelRatio
const SNAP_MIN_DISTANCE_PIXELS = 10 * window.devicePixelRatio
const orthoFactor = orthoScale(this.sceneInfra.camControls.camera)
// See if snapDirection intersects with any of the axes