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 · 0 comments
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant