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
On the desktop build, holding Alt and left-mouse dragging in the 3D view draws a selection rectangle and multi-selects shapes (OCCT AIS_ViewController rubber-band / SelectRectangle gesture with Aspect_VKeyFlags_ALT).
On the WASM / Emscripten build, the same gesture does not multi-select shapes.
Reproduction
Open the WASM app (e.g. GitHub Pages demo or local Emscripten build).
Load or create several solids so more than one is visible in Normal mode.
Hold Alt, press LMB, and drag a rectangle over multiple shapes.
Release LMB.
Expected: Shapes inside the rectangle are selected (same as desktop). Actual: Multi-select via Alt+LMB drag does not work on WASM.
Browser / Emscripten often mishandle Alt (menu focus, altKey on pointer events, glfwGetKey for Alt). Confirm whether mods on press and live Alt state during drag are both present under WASM.
Related umbrella: Hot keys #93 (Emscripten / web hotkeys and input follow-up).
Acceptance criteria
WASM: Alt + LMB drag rectangle-selects multiple shapes like desktop.
Desktop behavior unchanged.
Docs mention Alt+drag multi-select (and any remaining Web caveats) in usage.md / usage-occt-view.md as appropriate.
Notes or fix recorded under agents/plans/wasm-alt-drag-multiselect.md.
Summary
On the desktop build, holding Alt and left-mouse dragging in the 3D view draws a selection rectangle and multi-selects shapes (OCCT
AIS_ViewControllerrubber-band /SelectRectanglegesture withAspect_VKeyFlags_ALT).On the WASM / Emscripten build, the same gesture does not multi-select shapes.
Reproduction
Expected: Shapes inside the rectangle are selected (same as desktop).
Actual: Multi-select via Alt+LMB drag does not work on WASM.
Notes / likely touch points
Occt_view::key_flags_from_glfw_mapsGLFW_MOD_ALT→Aspect_VKeyFlags_ALT; mouse move useskey_flags_from_glfw_window_()(src/gui_occt_view.cpp).src/main.cpp→GUI::on_mouse_button→Occt_view::PressMouseButton/UpdateMousePosition.altKeyon pointer events,glfwGetKeyfor Alt). Confirm whethermodson press and live Alt state during drag are both present under WASM.Acceptance criteria
usage.md/usage-occt-view.mdas appropriate.agents/plans/wasm-alt-drag-multiselect.md.Related
agents/plans/wasm-alt-drag-multiselect.md(tracking landed on PR Add temporary shape cross-section preview tool #219; does not fix this bug)agents/drafts/issues/active/gh-220-wasm-alt-drag-multiselect.md