On 12 November 2014 02:18, Andrew Chadwick <[email protected]> wrote:
>
> 0. Seems it cannot be turned off for touchpads and tablets, which is a
> showstopper. These devices evidently only send GDK_SCROLL_SMOOTH
> events when the event mask contains GDK_SMOOTH_SCROLL_MASK! I think
> the handling of smooth scrolling events needs some work; perhaps it
> could be made to work like old-style scroll "button" events by
> considering and comparing the sign and magnitude of delta_x and
> delta_y?

A little more information. At least some scrollwheel mice do it too:

(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, -1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, -1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, -1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, 1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, 1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, 1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, -1.0)
(<enum GDK_SCROLL_SMOOTH of type GdkScrollDirection>, 0.0, -1.0)

Note the absence of any GDK_SCROLL_UP or GDK_SCROLL_DOWN events in
that sequence. Removing the line that adds the event mask turns the
same sort of event sequence into

(<enum GDK_SCROLL_UP of type GdkScrollDirection>, 0.0, 0.0)
(<enum GDK_SCROLL_DOWN of type GdkScrollDirection>, 0.0, 0.0)
(<enum GDK_SCROLL_UP of type GdkScrollDirection>, 0.0, 0.0)
(<enum GDK_SCROLL_DOWN of type GdkScrollDirection>, 0.0, 0.0)
(<enum GDK_SCROLL_DOWN of type GdkScrollDirection>, 0.0, 0.0)

-- 
Andrew Chadwick

_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to