Follow-up to the GTK→ShellApp event-dispatch migration. Parent: #448 (regression from #540).
Summary
Using the scroll wheel moves the editor text in the opposite direction from what's expected (and from pre-migration behavior): scrolling the wheel one way moves the viewport the other way.
Repro
- Open a file taller than the viewport.
- Scroll the mouse wheel down → text moves the wrong way (viewport goes up), and vice-versa.
Root-cause hint
The sign of delta_y when translating a GDK scroll event into quadraui::UiEvent::Scroll / ScrollDelta looks inverted on the new ShellApp path:
Compare the polarity the ShellApp handle(UiEvent::Scroll) applies vs the old fn update path — one of them negates and the migration likely dropped/added a negation.
Acceptance
Scroll direction matches the pre-migration/native convention. Add a unit test on the GDK-scroll → UiEvent::Scroll translation asserting delta polarity.
Follow-up to the GTK→ShellApp event-dispatch migration. Parent: #448 (regression from #540).
Summary
Using the scroll wheel moves the editor text in the opposite direction from what's expected (and from pre-migration behavior): scrolling the wheel one way moves the viewport the other way.
Repro
Root-cause hint
The sign of
delta_ywhen translating a GDK scroll event intoquadraui::UiEvent::Scroll/ScrollDeltalooks inverted on the new ShellApp path:src/gtk/mod.rs:1654—Msg::MouseScroll { delta_x, delta_y }and theScrollDelta::new(delta_x, delta_y)construction (~:1682)gdk_scroll_to_uieventinsrc/gtk/events.rsCompare the polarity the ShellApp
handle(UiEvent::Scroll)applies vs the oldfn updatepath — one of them negates and the migration likely dropped/added a negation.Acceptance
Scroll direction matches the pre-migration/native convention. Add a unit test on the GDK-scroll →
UiEvent::Scrolltranslation asserting delta polarity.