Keyframe diamonds: pointing-hand cursor + prefetch during playback
- Pointing-hand cursor when hovering a clickable keyframe diamond. - Prefetch (Phase 3e, playback only): each update during playback, page in the next few upcoming keyframes (PREFETCH_AHEAD=4) per raster layer that aren't resident, via the existing async worker. Their full pixels land before the playhead reaches them, so playback shows full frames instead of the low-res proxy on every frame (the proxy→full pop was the "flicker"). Reactive faults still cover scrubbing.
This commit is contained in:
@@ -4867,6 +4867,13 @@ impl TimelinePane {
|
||||
}
|
||||
}
|
||||
|
||||
// Pointing-hand cursor when hovering a clickable keyframe diamond.
|
||||
if let Some(hover) = response.hover_pos() {
|
||||
if self.keyframe_diamond_hits.iter().any(|(r, _)| r.contains(hover)) {
|
||||
ui.ctx().set_cursor_icon(egui::CursorIcon::PointingHand);
|
||||
}
|
||||
}
|
||||
|
||||
// Click a keyframe diamond → snap the playhead exactly to that keyframe.
|
||||
// (Hit targets come from the previous frame's render_layers; diamonds don't
|
||||
// move between frames, so a click lands on the right one.)
|
||||
|
||||
Reference in New Issue
Block a user