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:
Mikael Tollefsen authored and vangel76 committed 2026-10-20 01:01:15 +02:00
1 parent 2e7852fa4d
commit 665af07277
1 file changed
+3
+3
View File
@@ -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 {