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

Windows ScrollView behavior isn't linked to scrollbar visibility #1209

Closed
freakboy3742 opened this issue Feb 19, 2021 · 0 comments · Fixed by #1969
Closed

Windows ScrollView behavior isn't linked to scrollbar visibility #1209

freakboy3742 opened this issue Feb 19, 2021 · 0 comments · Fixed by #1969
Labels
bug A crash or error in behavior. windows The issue relates to Microsoft Windows support.

Comments

@freakboy3742
Copy link
Member

Describe the bug

If you start the scrollcontainer demo app on Windows, the checkboxes definitely control whether the horizontal or vertical scrollbars are visible - but they don't control whether you can scroll.

To Reproduce

When the app starts, it has Vertical on, Horizontal off. If you turn on Horizontal, a horizontal scrollbar (that appears to be about the right size) is displayed. (Interestingly, the "two finger swipe" action doesn't seem to work for me, but I can't work out if that's the fact I'm running in Windows in a VM). If you then turn off vertical, the scroll bar disappears, but you can still scroll vertically (again, in my case, using the touchpad). The menu items don't appear to do anything - so that part is working as expected - but something in the scrolling is still active.

Expected behavior

The ability to scroll on a given axis should be linked to the visibility of the scrollbar.

Environment:

  • Operating System: Windows
  • Python version: All
  • Software versions:

Additional context

There was a broadly similar bug on Cocoa - once the scroll direction was set, the content was set to a specific size, which meant that even if you turned on horizontal scrolling, the size of the content was set to the same size as the scroll window, so there was nothing to scroll. Forcing a refresh corrected that; I did a quick check, and it doesn't look like exactly the same fix works for Windows, but the problem may be in a related area.

@freakboy3742 freakboy3742 added bug A crash or error in behavior. up-for-grabs windows The issue relates to Microsoft Windows support. labels Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior. windows The issue relates to Microsoft Windows support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant