Comment 4 for bug 1607240

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Xmir Firefox scrolling is too fast (mouse wheel) when run under Unity8 (since Xmir 2:1.18.4-1ubuntu4)

Confirmed the wheel vscroll value received by Xmir is exactly 7.0:
       vscroll = mir_pointer_event_axis_value(pev, mir_pointer_axis_vscroll);

So for each mouse wheel tick:
USC sends a vscroll value of +1/-1 to Unity8
Unity8 sends a vscroll value of +7/-7 to apps

In previous versions of Xmir, we would ignore the magnitude and convert the 7 into 1. But now Xmir does proper smooth scrolling we need to honour the magnitude. So a value of 7 from Unity8 now results in 7x more scrolling.

The Xmir change is correct and we need to fix some Untiy8/Qt code somewhere so that a mouse wheel tick is always vscroll=1.0.