Withdrawn: 8303038: Glass gtk3 sends scroll events with delta(x, y) = 0
duke
duke at openjdk.org
Tue Aug 1 07:23:54 UTC 2023
On Wed, 22 Feb 2023 01:11:55 GMT, Thiago Milczarek Sayao <tsayao at openjdk.org> wrote:
> Simple fix to get the scroll deltas from GDK_SCROLL_SMOOTH. If we ignore this scroll event type, deltas are sent to java with the value equal to zero.
>
> Here's whats happening:
>
> We include all event masks, so when using gtk3 (>= 3.4.0) it includes `GDK_SMOOTH_SCROLL_MASK` meaning we receive duplicated events, one with `direction = GDK_SMOOTH_SCROLL_MASK` and other with "legacy" direction (UP/DOWN).
>
> When receiving the event corresponding to `GDK_SMOOTH_SCROLL_MASK` we ignored it causing it to send deltas (x,y) = 0.
>
> The fix now checks if `GDK_SMOOTH_SCROLL_MASK` is supported and uses it, also adding smooth scroll functionality.
This pull request has been closed without being integrated.
-------------
PR: https://git.openjdk.org/jfx/pull/1044
More information about the openjfx-dev
mailing list