mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 00:15:44 +00:00
Zoom hinting test: the wheel's own frame is checked too
The frame the Ctrl+wheel event arrives in already changes the scale; the test now checks it is unhinted, not only the eased frames after it.
This commit is contained in:
1 parent
2e7852fa4d
commit
665af07277
1 file changed
+3
@@ -3869,6 +3869,9 @@ mod tests {
|
||||
};
|
||||
let before = a.canvas.scale;
|
||||
frame(&mut a, vec![wheel]);
|
||||
// The wheel's own frame already starts the zoom, unhinted.
|
||||
assert_ne!(a.canvas.scale, before, "the zoom starts in the wheel's frame");
|
||||
assert!(!platform || !a.canvas.pages_hinted, "the wheel's frame is unhinted");
|
||||
let (mut eased, mut unhinted) = (0, 0);
|
||||
let mut last = a.canvas.scale;
|
||||
for _ in 0..60 {
|
||||
|
||||
Reference in new issue
Block a user