You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: unfocus UI inputs on viewport click, refuse duplicate id in ID input (#860)
* fix: unfocus UI inputs on viewport click, refuse duplicate id in ID input
raycaster.js preventDefault'ed every mousedown on the viewport, which
canceled the browser's default focus transfer, so clicking the viewport
never unfocused the currently focused panel input. Only preventDefault
non-left buttons now (still needed so middle-click zoom doesn't trigger
autoscroll) and add user-select none on the canvas to keep drag-orbits
from starting a text selection, which the preventDefault was
incidentally providing.
changeId now refuses an id already used by another element (a duplicate
id breaks entity lookups done with getElementById/querySelector) and
shows a message below the input explaining the previous id was restored.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: remove dead a-canvas rules
The .aframe-inspector-opened a-scene .a-canvas and
.a-canvas.state-dragging rules are nested under #aframeInspector, and
the canvas is not a descendant of it, so they never matched. Nothing in
src adds the state-dragging class anyway.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments