Merge pull request #2624 from storytold/fix/2584-scriptui-mouse-capture

ScriptUI: a drag keeps its control past the window edge; MouseEvent.buttons (#2584)
This commit is contained in:
BFlat
2026-10-30 07:38:50 +07:00
committed by GitHub
5 changed files with 66 additions and 10 deletions
+1
View File
@@ -759,6 +759,7 @@ pub(crate) fn mouse(s: &mut Session, p: &Value) -> Result<Value> {
"screenX": num("screenX", -FAR, FAR, 0.0),
"screenY": num("screenY", -FAR, FAR, 0.0),
"button": num("button", 0.0, 2.0, 0.0).round(),
"buttons": num("buttons", 0.0, 7.0, 0.0).round(),
"detail": num("detail", 0.0, 1000.0, clicks).round(),
"altKey": flag("altKey"),
"ctrlKey": flag("ctrlKey"),