perf(ui-visuals): keep seeking and panning free of redundant work

The filmstrip moves one cached current-frame marker instead of building a
geometry per seek; panning the preview no longer re-applies the wipe clip
or re-sets an unchanged zoom.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 10:29:45 +00:00
1 parent 75508395c3
commit a12ec6b493
3 files changed
+19 -6

No files matched your search

+3 -1
View File
@@ -363,10 +363,12 @@ public class PreviewViewport : Control
if (ZoomMode == PreviewZoomMode.Actual) view = ViewportMath.SnapOffset(view, dpi);
_view = view;
_surface?.SetView(view, view.Scale * dpi);
var zoom = view.Scale * dpi;
if (zoom == Zoom) return;
_syncingZoom = true;
try
{
SetCurrentValue(ZoomProperty, view.Scale * dpi);
SetCurrentValue(ZoomProperty, zoom);
}
finally
{