autoscroll: note the no-pointer case in paint

This commit is contained in:
Emmanuel
2026-10-25 02:24:26 +05:30
parent 17957b6fd5
commit 2b3164f6f4
+1
View File
@@ -152,6 +152,7 @@ impl AutoScroll {
Stroke::NONE,
));
}
// No pointer position (outside the window) counts as the dead zone: `update` cancels the gesture then.
let displacement = ui.ctx().input(|i| i.pointer.hover_pos()).map_or(0.0, |p| p.y - anchor.y);
ui.ctx().set_cursor_icon(cursor_icon(displacement));
}