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:
3 files changed
+19
-6
No files matched your search
@@ -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
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user