mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-02 00:30:55 +00:00
test: the compact row scrolls back before reaching Fast Previews
Co-Authored-By: DeepSeek V4.1 Flash <noreply@deepseek.com>
This commit is contained in:
1 parent
2efdea0bc2
commit
4cb3a8c699
1 file changed
+10
@@ -143,6 +143,16 @@ fn compact_control_row_scrolls_and_preserves_interactions() {
|
||||
h.run_steps(3);
|
||||
assert!(!h.state().session.state.viewer.show_snapshot, "releasing the snapshot control must return to the current frame");
|
||||
|
||||
// Fast Previews sits beside the resolution control, so the row that scrolled to the timecode has
|
||||
// to scroll back before its menu is reachable.
|
||||
h.event(Event::MouseWheel {
|
||||
unit: egui::MouseWheelUnit::Point,
|
||||
delta: vec2(1500.0, 0.0),
|
||||
modifiers: Default::default(),
|
||||
phase: egui::TouchPhase::Move,
|
||||
source: egui::MouseWheelSource::Wheel,
|
||||
});
|
||||
h.run_steps(30);
|
||||
click_control(&mut h, "viewer.fastPreviews");
|
||||
click_control(&mut h, "viewer.fastPreviewsItem.1");
|
||||
assert_eq!(h.state().session.state.viewer.fast_previews.id(), "adaptive", "a scrolled dropdown must retain its menu command");
|
||||
|
||||
Reference in new issue
Block a user