A left press on the view cube held and dragged orbits the view: the press is not a click until it moves or is held past one, then the pointer grabs and the view orbits about its centre as the other orbits do (the move it took to tell a drag from a click turns the view too). A press that doesn't move is still a click on the face, edge or corner. While the cube is dragged its hover highlight is off, the release is not a click, and the navigation bar's orbit or pan tool doesn't also act on the drag. A press on a floating window over the cube is the window's and starts no orbit, as with the cube's hover. Tests: the s39 scenario drags 48 px right from FRONT and the view turns 22° without clicking the face
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c28e780f52
commit
f30b30be6e
3 files changed
+48
-5
No files matched your search
@@ -31,6 +31,11 @@
|
||||
{"call": "ui.view", "params": {"view": "home"}},
|
||||
{"click": {"handle": "cube:top-back-right"}},
|
||||
{"expect": {"camera": {"yaw_deg": -135, "pitch_deg": 35.26}}},
|
||||
{"note": "Pressing on the cube and dragging orbits the view by the whole drag (48 px right: 22°), and the release is not a click on the face pressed."},
|
||||
{"call": "ui.view", "params": {"view": "front"}},
|
||||
{"expect": {"camera": {"yaw_deg": 0, "pitch_deg": 0}}},
|
||||
{"drag": [{"cube": [0, -1, 0]}, {"cube": [1.5, -1, 0]}]},
|
||||
{"expect": {"camera": {"yaw_deg": 22, "pitch_deg": 0}}},
|
||||
{"move": [800, 500]},
|
||||
{"expect": {"count": {"name": "cube_highlights", "value": 0}}}
|
||||
]
|
||||
Reference in new issue
Block a user