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

Topic/fix scrollbar hiding osx #1523

Merged
merged 5 commits into from
Jun 15, 2015
Merged

Conversation

scztt
Copy link
Contributor

@scztt scztt commented Jun 5, 2015

This makes sclang honor the "Show scroll bars" preference on mac.

In addition, this works around cases on systems that either don't have a mouse wheel, or users that don't use it: in those cases, the scrollbars will auto-hide making scrolling hard to access / non-obvious. We default to always showing scrollbars until we receive a wheel event, at which point we allow normal hiding behavior. The BETTER solution here is to provide an AlwaysShowScrollbars() API for Windows and X11 that matches the mac API, so sclang follows the system-wide prefs. Ubuntu has a preferences for similar overlay scrollbars, and my GUESS is that Windows does as well - however, I can't find them, and don't have a system to easily test on. If any Win / Lin developers want to research this, it should be easy to modify from here.

@scztt scztt added this to the 3.7 milestone Jun 7, 2015
telephon added a commit that referenced this pull request Jun 15, 2015
@telephon telephon merged commit 883b857 into master Jun 15, 2015
@bagong
Copy link
Contributor

bagong commented Jun 19, 2015

I could try this out on Windows (8.1-64 Qt5.4.2 (vanilla), VS64. I assume it works as it should/intended after making the build succeed by commenting out the #elif Q_OS_WIN line in ProxyStyle.cpp. The scrollbar behaviour in fact changes after the first mouse-wheel event, the scrollbar disappears/fades out. In my environment after this switch it is hard to recover the scrollbar though - I would expect it to reappear if hovering over the window border. I tried this with the Quarks.gui and and the scrollbar example in Window-help and I didn't find a way to make it reappear reliably. Certainly not a big issue... ;)

@mossheim mossheim deleted the topic/fix-scrollbar-hiding-osx branch January 15, 2017 21:19
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.

3 participants