Gerd Hoffmann writes:
>> +#if GTK_CHECK_VERSION(3, 4, 0)
>> +} else if (scroll->direction == GDK_SCROLL_SMOOTH) {
>> +gdouble delta_x, delta_y;
>> +if (!gdk_event_get_scroll_deltas((GdkEvent*)scroll, &delta_x,
>> &delta_y))
>> +return TRUE;
>> +if (delta_y
> +#if GTK_CHECK_VERSION(3, 4, 0)
> +} else if (scroll->direction == GDK_SCROLL_SMOOTH) {
> +gdouble delta_x, delta_y;
> +if (!gdk_event_get_scroll_deltas((GdkEvent*)scroll, &delta_x,
> &delta_y))
> +return TRUE;
> +if (delta_y > 0)
> +btn = INPU
On 3.4.0 or later, send GDK_SCROLL_SMOOTH event, instead of
GDK_SCROLL_UP/DOWN.
This fixes it by converting any smooth scroll to up/down.
(I.e. without smooth support)
Signed-off-by: OGAWA Hirofumi
---
ui/gtk.c | 10 ++
1 file changed, 10 insertions(+)
diff -puN ui/gtk.c~mouse-wheel