Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScrollContentPresenter horizontal scroll inverts when FlowDirection is RTL in MacOS trackpad #16667

Open
Mop1398 opened this issue Aug 12, 2024 · 1 comment · May be fixed by #17714
Open

ScrollContentPresenter horizontal scroll inverts when FlowDirection is RTL in MacOS trackpad #16667

Mop1398 opened this issue Aug 12, 2024 · 1 comment · May be fixed by #17714
Labels

Comments

@Mop1398
Copy link

Mop1398 commented Aug 12, 2024

Describe the bug

hello.

Screen.Recording.1403-05-22.at.16.39.13.mov

when the ScrollViewer is in RTL , vertical scroll from trackpad is still the same behavior as LTR (trackpad up =>showing new content from down)
but horizontal scroll from trackpad is inverted (trackpad left =>showing new content from left)

it appears only happening with trackpad , (is it about OnScrollGesture from ScrollContentPresenter ?)

basically it seems trackpad going left is binded to show more from later content of scrollview ,which is completely ok when app is LTR , but it is sort of inverted in RTL . (red box in video is the first item to be seen in scrollviewer ,meaning leftmost item in RTL and rightmost item in LTR)

To Reproduce

  • make a scrollviewer with flowdirection RTL
  • put some contents in it
  • do trackpad gestures with macos.

Expected behavior

in Rtl should bring new content from left when trackpad goes right . right to left and left to right scrolls by trackpad should be inverted in RTL .

Avalonia version

11.1.1

OS

macOS

Additional context

couldn't find any attribute of ScrollContentPresenter to invert in horizontal direction.
have tested with windows 10 trackpad , same results.

@Mop1398 Mop1398 added the bug label Aug 12, 2024
@ijklam
Copy link
Contributor

ijklam commented Dec 8, 2024

Same behaviour on Android

ijklam added a commit to ijklam/Avalonia that referenced this issue Dec 8, 2024
@ijklam ijklam linked a pull request Dec 8, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants