mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-14 19:27:07 -04:00
fix: integrate batched community PRs (#845's Find scope test uses the Page tool's double-click from #862)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
4f193834bd
commit
23ac4ce3f1
1 file changed
+2
-1
@@ -4429,8 +4429,9 @@ mod tests {
|
||||
let off = app.session.layout().xf(designcraft_engine::doc::SpreadRef::Doc(0)).translation();
|
||||
let x = off.x + before.doc.spreads[0].pages[0].x + 200.0;
|
||||
let y = off.y + 200.0;
|
||||
// The Page tool opens Page Size on a double-click (a click selects the page).
|
||||
let events = if tool == "page" {
|
||||
json!([{"kind": "up", "x": x, "y": y}])
|
||||
json!([{"kind": "doubleclick", "x": x, "y": y}])
|
||||
} else {
|
||||
json!([{"kind": "down", "x": x, "y": y}, {"kind": "up", "x": x, "y": y}])
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user