Repository navigation
Spacebar hand tool, Effect Controls menu, New Comp drop, switch drags (#227) - #238
Merged
Merged
Conversation
Spacebar started or stopped the preview on its press, so holding it to pan the Composition panel (Space+drag already panned there) also toggled playback. As in After Effects, plain Spacebar now runs its shortcut when it is released, and only if no mouse button went down while it was held and the press didn't go to a text field; key auto-repeat toggles nothing more. Shift+Spacebar and the numpad preview shortcuts still run on the press. Holding Spacebar over the Timeline's ruler and time graph is the Hand tool there too: dragging scrolls the time graph (when zoomed in, never before the comp's start or past its end) instead of moving bars, keys or markers. Test: spacebar_taps_preview_and_held_spacebar_pans_the_viewer, spacebar_drag_scrolls_the_time_graph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Right-clicking the Effect Controls panel did nothing outside an effect's header. As in After Effects, a right-click anywhere a control has no menu of its own (the empty area, property names, buttons such as Reset) now opens the Effect menu: Effect Controls, Last Effect, Remove All, Manage Effects and every effect category, applying the chosen effect to the selected layers. It is the menu bar's own Effect menu tree and drawing code; an effect header keeps its own menu. Test: right_click_in_effect_controls_shows_the_effect_menu. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dragging Project items onto the Create a new Composition button at the bottom of the Project panel did nothing. As in After Effects, the button now takes the drop and runs File > New Comp from Selection with the dragged items (the selection when the dragged item is in it): one item becomes a comp of its size, frame rate and duration holding it, and several open the New Composition from Selection dialog. The button is outlined while items are dragged over it. Test: project_items_dropped_on_new_comp_make_a_composition. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each layer switch toggled on its own click only, so hiding or locking many layers took a click per layer. As in After Effects, pressing a switch in the A/V Features or Switches column now sets it at once, and dragging up or down gives the same switch of every layer the pointer passes the state the first one got, whatever their own state was (rows passed in a quick drag included). The whole drag is one undo step: layer.setSwitch takes a `merge` key like other gesture edits. A single click still changes only that layer, so clicking the eye of one selected layer doesn't change the others (Layer > Switches still sets all selected layers). Test: dragging_over_layer_switches_sets_them_all. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bflatastic
force-pushed
the
fix/227-interface
branch
from
October 8, 2026 06:02
aa0a6a6 to
764eee4
Compare
bflatastic
added a commit
that referenced
this pull request
Oct 9, 2026
As in After Effects, pressing a property's stopwatch toggles it, and dragging on over the stopwatches above or below gives every property the pointer passes the state the first one got (animated or not), whatever its own, in one undo step. Alt+click still adds an expression. The gesture is the layer switches' press-and-drag from #238, moved into `switch_gesture` and shared by both. `prop.toggleAnimation` takes `merge` so the drag folds into one undo step. Tests: dragging_over_stopwatches_sets_them_all (ui_timeline_switches), stopwatch_toggles_with_a_merge_key_are_one_undo_step (engine). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Four of the interface items from #227, each matching After Effects.
engine::menus) and drawing code (menus::menu_contentsovermenu_nodes). Effect headers keep their own menu.file.newCompFromSelectionwith the dragged items (the selection when the dragged item is part of it). One item makes a comp from its settings. Several items open the New Composition from Selection dialog.layer.setSwitchnow takesmerge. A single click still changes only that layer, so we kept After Effects' click behaviour rather than toggling all selected layers. Layer ▸ Switches still sets all selected layers.Tests (egui_kittest, real pointer/key events; each fails without its change):
ui_viewer::spacebar_taps_preview_and_held_spacebar_pans_the_viewerui_timeline_zoom::spacebar_drag_scrolls_the_time_graphui_effect_controls::right_click_in_effect_controls_shows_the_effect_menuui_drag_drop::project_items_dropped_on_new_comp_make_a_compositionui_timeline_switches::dragging_over_layer_switches_sets_them_alldocs/gaps.mdG2 lists them as regression evidence for #227.Not checked:
repeatflag.Left out on purpose: Project panel blank-area context menu (open PR #210), Composition Settings live preview (AE applies on OK), multi-monitor support.
Gate:
cargo fmt --all: clean.cargo clippy -p effectcraft-ui-egui -p effectcraft-engine --all-targets -D warnings: clean in debug and release, and clean on each intermediate commit.cargo test -p effectcraft-ui-egui: all pass exceptui_gpu::viewer_draws_gpu_frames_that_match_the_cpu. That test also fails on clean main on this Windows machine (DX12).cargo test -p effectcraft-engine --lib: 406 passed.🤖 Generated with Claude Code