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

Add GdkEvent.Scroll.delta_{x,y} #173

Merged
merged 1 commit into from
Jan 30, 2024
Merged

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Dec 14, 2023

At least on my laptop, using Wayland, GTK only generates "smooth" scroll events when using the touchpad. These fields are necessary in order to work out the direction and distance of the event.

@talex5
Copy link
Contributor Author

talex5 commented Jan 30, 2024

Is this OK? I'd like to use it in eio-trace, as otherwise it doesn't work on laptops.

@garrigue garrigue merged commit 46c50b4 into garrigue:lablgtk3 Jan 30, 2024
15 checks passed
@garrigue
Copy link
Owner

Thanks for the reminder.
This looks trivial, so let's merge.

mseri pushed a commit to ocaml/opam-repository that referenced this pull request Jan 31, 2024
CHANGES:

2024.01.31 [Jacques]
  * use Bytes rather than String
  * Various missing bindings, including lablgtk3-rsvg2 (garrigue/lablgtk#128)
  * GtkStyleContext: Add missing class and provider functions (garrigue/lablgtk#163)
  * Add GdkEvent.Scroll.delta_{x,y} (garrigue/lablgtk#173) [Thomas Leonard]
@talex5 talex5 deleted the smooth-scroll branch February 2, 2024 13:33
@talex5
Copy link
Contributor Author

talex5 commented Feb 2, 2024

Thanks; I've updated eio-trace to use the released version :-)

nberth pushed a commit to nberth/opam-repository that referenced this pull request Jun 18, 2024
CHANGES:

2024.01.31 [Jacques]
  * use Bytes rather than String
  * Various missing bindings, including lablgtk3-rsvg2 (garrigue/lablgtk#128)
  * GtkStyleContext: Add missing class and provider functions (garrigue/lablgtk#163)
  * Add GdkEvent.Scroll.delta_{x,y} (garrigue/lablgtk#173) [Thomas Leonard]
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.

2 participants