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

Mouse scroll does not trigger callback while SHIFT modifier is used #58

Closed
kschertler opened this issue Oct 19, 2023 · 1 comment · Fixed by #56
Closed

Mouse scroll does not trigger callback while SHIFT modifier is used #58

kschertler opened this issue Oct 19, 2023 · 1 comment · Fixed by #56

Comments

@kschertler
Copy link

Currently only noticed on the Mac, the following code does not call the sig_scroll callback (see below) while the SHIFT modifier is pressed. Other modifiers correctly do produce the expected @show output.

using GtkObservables
using GtkObservables.Gtk4

win = GtkWindow("Test")
c = canvas()
push!(win, c)

sig_scroll = on(c.mouse.scroll) do scroll
    @show scroll
end

The problem seems to be related to the use of an external mouse, since using a two-finger gesture on the touchpad of the Mac (to do the scrolling) works correctly.

I'm using the following system (but same problem exists on Julia 1.9):

versioninfo()
Julia Version 1.8.4
Commit 00177ebc4fc (2022-12-23 21:32 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin21.4.0)
  CPU: 8 × Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 8 on 8 virtual cores

GtkObservables v2.0.1

@kschertler
Copy link
Author

The issue has been confirmed on an independent system here:

#57 (comment)

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 a pull request may close this issue.

1 participant