Skip to content

#448-G: GTK scroll wheel scrolls editor text in the wrong (inverted) direction #554

Description

@JDonaghy

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

  1. Open a file taller than the viewport.
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcoordTracked by coord-tui pipelinestatus:readyRefined and ready to enter the work pipelinetest-mode:autocoord: per-issue test-mode policyuiUI/rendering

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions