Skip to content

fix: trackpad ios ipad desktop#22762

Merged
ajpinedam merged 15 commits intounoplatform:masterfrom
ajpinedam:fix/trackpad.ios.ipad.desktop
Mar 4, 2026
Merged

fix: trackpad ios ipad desktop#22762
ajpinedam merged 15 commits intounoplatform:masterfrom
ajpinedam:fix/trackpad.ios.ipad.desktop

Conversation

@ajpinedam
Copy link
Contributor

GitHub Issue: closes https://github.com/unoplatform/uno-private/issues/1740

PR Type:

  • 🐞 Bugfix

What is the current behavior? 🤔

What is the new behavior? 🚀

PR Checklist ✅

Please check if your PR fulfills the following requirements:

Other information ℹ️

@ajpinedam ajpinedam self-assigned this Mar 2, 2026
Copilot AI review requested due to automatic review settings March 2, 2026 21:53
@github-actions github-actions bot added platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform area/skia ✏️ Categorizes an issue or PR as relevant to Skia labels Mar 2, 2026
@ajpinedam ajpinedam requested review from Copilot, dr1rrb and ramezgerges and removed request for Copilot March 2, 2026 21:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts trackpad/mouse-wheel scrolling behavior for Apple platforms (iOS/iPadOS + Mac Catalyst) to improve responsiveness and correctness when scroll events arrive at high frequency.

Changes:

  • Modify ScrollContentPresenter wheel scrolling on iOS to avoid long composition animations by applying immediate offset updates.
  • Add Mac Catalyst scroll-event forwarding from UIWindow.SendEvent into the pointer input pipeline, and update iOS scroll gesture handling to support inertia via CADisplayLink.
  • Ensure Uno.UI.Dispatching.netcoremobile selects the Skia dispatcher implementation when building with a “generic” netX.Y target framework override.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Uno.UI/UI/Xaml/Controls/ScrollContentPresenter/ScrollContentPresenter.cs Adjusts wheel-scroll offset updates (special-cases iOS) to avoid animation backlog with trackpads.
src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Window/AppleUIKitWindow.cs Hooks Mac Catalyst scroll UIEvents and forwards deltas into Uno’s pointer input source.
src/Uno.UI.Runtime.Skia.AppleUIKit/Devices/Input/TopViewLayer.cs Tightens iOS scroll gesture recognizer configuration and routes gesture handling through the updated API.
src/Uno.UI.Runtime.Skia.AppleUIKit/Devices/Input/AppleUIKitPointerInputSource.cs Adds iOS inertia scrolling and Mac Catalyst scroll event handling, generating wheel-like pointer events.
src/Uno.UI.Dispatching/Uno.UI.Dispatching.netcoremobile.csproj Sets UnoRuntimeIdentifier to Skia for “generic net” builds so the Skia dispatcher source is included.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

Copilot AI review requested due to automatic review settings March 3, 2026 02:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

1 similar comment
@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 199346 has failed on Uno.UI - CI.

@ajpinedam ajpinedam force-pushed the fix/trackpad.ios.ipad.desktop branch from 2437a5b to c06ab14 Compare March 3, 2026 14:55
Copilot AI review requested due to automatic review settings March 3, 2026 14:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most of copilot comments sounds legit (they might not be but they do sound like)

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 3, 2026 15:40
ajpinedam and others added 2 commits March 3, 2026 10:40
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 3, 2026 16:07
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

@unodevops
Copy link
Contributor

⚠️⚠️ The build 199473 has failed on Uno.UI - CI.

@unodevops
Copy link
Contributor

🤖 Your WebAssembly Skia Sample App stage site is ready! Visit it here: https://unowasmprstaging.z20.web.core.windows.net/pr-22762/wasm-skia-net9/index.html

@ajpinedam ajpinedam merged commit 5494e4d into unoplatform:master Mar 4, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/skia ✏️ Categorizes an issue or PR as relevant to Skia platform/ios 🍎 Categorizes an issue or PR as relevant to the iOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants