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
x/exp/shiny: Mouse wheel event direction inverted on MacOS #16020
Comments
I just played with this a little more, and it seems like the trackpad "Scroll direction" setting and the Mouse "Scroll direction" setting are interacting in some way where toggling the mouse setting is affecting the trackpad and vice versa. |
Yes, there's only one system-wide setting for scrolling direction that applies to both trackpads and mouse devices. You can't configure them independently. |
CL https://golang.org/cl/24360 mentions this issue. |
@shurcooL you're right, I didn't notice that changing one also changes the other in system preferences. It's just bad UI design by Apple.. |
FWIW, my personal opinion is that it is:
If I were in their place, I would make the same decision. Sorry for slightly off-topic comment. |
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6.2 darwin/amd64
go env
)?OS X El Capitain (10.11.5)
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/driusan/Code/Go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GO15VENDOREXPERIMENT="1"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on play.golang.org is best.
The easiest way to reproduce is to run x/exp/shiny/example/basic on Mac, and use a physical mouse wheel to see the mouse direction of the event that gets printed to the terminal, then compare it to the direction that the scroll wheel scrolls the window in a non-shiny app (ie. on Chrome, in a terminal window, etc)
This would make the OS X behaviour consistent with how the X11 et al drivers work.
Mouse wheel events send the opposite direction of what's expected.
The text was updated successfully, but these errors were encountered: