Keep edge-scroll fractions valid after clamped jumps

This commit is contained in:
fufesou
2026-09-13 12:04:05 +08:00
parent d2561f7f6b
commit d2d7c83602
2 changed files with 10 additions and 2 deletions

View File

@@ -2696,6 +2696,8 @@ class CanvasModel with ChangeNotifier {
setScrollPercent(scrollPixelPercent.x, scrollPixelPercent.y);
pushScrollPositionToUI(scrollPixel.x, scrollPixel.y);
// A no-op jump emits no notification to refresh the actual scroll fractions.
updateScrollPercent();
notifyListeners();
}