Skip to content

fix(tao): match AWT trackpad scrolling on macOS and surface Pan events (#656) [2.6] - #661

Merged
kdroidFilter merged 1 commit into
nucleus-2.6from
port/2.6-656-macos-trackpad-scroll
Sep 7, 2026
Merged

kdroidFilter merged 1 commit into
nucleus-2.6from
port/2.6-656-macos-trackpad-scroll

Conversation

@kdroidFilter

Copy link
Copy Markdown
Collaborator

Cherry-pick of #656 onto nucleus-2.6 (#652, #653, #654).

What it ports

  • Horizontal trackpad scrolling matches AWT (no extra X flip).
  • Precise deltas are logical points, not physical pixels (no display-scale 2× on Retina).
  • Trackpad gestures reach Compose as PanStart / PanMove / PanEnd; wheel notches stay Scroll.
  • One TaoSceneScrollRouter for the window host and macOS NSPanel popups.
  • Native views get the whole pan (begin/end included). Trackpad Lab tab in nucleus-demo.

2.6 merge notes

Verify

  • :decorated-window-tao:compileKotlin / compileTestKotlin / native macOS rebuild
  • :examples:nucleus-demo:compileKotlin
  • unit tests: TaoTrackpadPanRouterTest, TaoSceneTrackpadPanTest, TaoScrollWireDriftTest, TaoSceneTestBatteryDriftTest, MacOsWheelDeltaTest, TaoWindowScrollTest, TaoSceneScrollTest
  • ktlint on the touched source sets

#656)

Cherry-pick of #656 onto nucleus-2.6. Closes #652, #653, #654.

The tao macOS patch is numbered 0008 here because 2.6 already used 0007
for the Linux outer-geometry placeholder.
@kdroidFilter
kdroidFilter merged commit 8732c0d into nucleus-2.6 Sep 7, 2026
4 checks passed
@kdroidFilter kdroidFilter mentioned this pull request Sep 17, 2026
@kdroidFilter
kdroidFilter deleted the port/2.6-656-macos-trackpad-scroll branch September 18, 2026 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant