Two-finger touchpad scrolling is not accurate in apps under Unity8 (but is in Mir demo servers)

Bug #1607223 reported by Daniel van Vugt
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Undecided
Daniel van Vugt
qtmir (Ubuntu)
Fix Released
High
Daniel van Vugt
qtubuntu (Ubuntu)
Fix Released
High
Daniel van Vugt

Bug Description

Smooth two-finger touchpad scrolling is not accurate in apps under Unity8 (but is in Mir demo servers).

The reason appears to be because QtMir drops the nice float vscroll precision that Mir gives it and converts that into an int with very limited resolution:

    void handleWheelEvent(ulong timestamp, QPoint angleDelta, Qt::KeyboardModifiers mods) override

QPoint is a pair of integers, but touchpad v/hscroll values are floats.

I have only just discovered that although my new smooth scrolling support about to land in Xmir works in Mir's demo servers, it doesn't work when I run the same binaries under Unity8.

Related branches

Changed in qtmir (Ubuntu):
importance: Undecided → High
Changed in qtmir:
importance: Undecided → High
tags: added: unity8-desktop
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Test case:
  Run webbrowser-app on a system with a nice big touchpad, under Unity7 and under Unity8.

You will find you have high-resolution precision to scroll very finely under Unity7, but not in Unity8.

Also, don't use System Settings as a test because that one has very broken touchpad scrolling even under Unity7 (!?) -> bug 1605513

summary: - Smooth two-finger touchpad scrolling doesn't work in apps under Unity8
- (but does work in Mir demo servers)
+ Smooth two-finger touchpad scrolling is not accurate in apps under
+ Unity8 (but is in Mir demo servers)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: Smooth two-finger touchpad scrolling is not accurate in apps under Unity8 (but is in Mir demo servers)

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in qtmir (Ubuntu):
status: New → Confirmed
Changed in qtmir:
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in qtmir (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in qtmir:
status: New → In Progress
Changed in qtmir (Ubuntu):
status: Confirmed → In Progress
Changed in canonical-devices-system-image:
status: New → In Progress
Changed in qtubuntu:
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in qtubuntu (Ubuntu):
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in qtubuntu:
status: New → In Progress
Changed in qtubuntu (Ubuntu):
status: New → In Progress
Changed in qtubuntu:
importance: Undecided → High
Changed in qtubuntu (Ubuntu):
importance: Undecided → High
Changed in qtmir:
status: In Progress → Fix Committed
Changed in qtubuntu:
status: In Progress → Fix Committed
Changed in qtmir (Ubuntu):
status: In Progress → Fix Committed
Changed in qtubuntu (Ubuntu):
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
assignee: nobody → Daniel van Vugt (vanvugt)
summary: - Smooth two-finger touchpad scrolling is not accurate in apps under
- Unity8 (but is in Mir demo servers)
+ Two-finger touchpad scrolling is not accurate in apps under Unity8 (but
+ is in Mir demo servers)
Changed in canonical-devices-system-image:
milestone: none → 13
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtmir - 0.4.8+16.10.20160810-0ubuntu1

---------------
qtmir (0.4.8+16.10.20160810-0ubuntu1) yakkety; urgency=medium

  [ Alan Griffiths ]
  * Reduce MirServer to an implementation detail of QMirServer (nothing
    else needs to touch it).

  [ Albert Astals Cid ]
  * Improvements from running clazy over the code
  * Compile with clang

  [ Daniel d'Andrada ]
  * Remove Application.stage and RoleStage from ApplicationManager

  [ Daniel van Vugt ]
  * Fix incorrect mouse wheel/touchpad scrolling scale (LP: #1607240)
    (LP: #1607223, #1607240)

 -- Michał Sawicz <email address hidden> Wed, 10 Aug 2016 06:53:16 +0000

Changed in qtmir (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtubuntu - 0.63+16.10.20160809-0ubuntu1

---------------
qtubuntu (0.63+16.10.20160809-0ubuntu1) yakkety; urgency=medium

  [ Daniel van Vugt ]
  * Use correct scrolling scale of 120 as documented: (LP: #1607223,
    #1607240)

  [ Gerry Boland ]
  * Reapply rev 324 plus fix: EGL convenience, plus workaround for
    hybris not supporting GLESv3. (LP: #1507817, #1594198)
  * Logging: separate graphics & cursor logging into their own logging
    categories

 -- Michał Sawicz <email address hidden> Tue, 09 Aug 2016 23:01:21 +0000

Changed in qtubuntu (Ubuntu):
status: Fix Committed → Fix Released
Changed in qtmir:
status: Fix Committed → Fix Released
Changed in qtubuntu:
status: Fix Committed → Fix Released
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
Michał Sawicz (saviq)
no longer affects: qtubuntu
Michał Sawicz (saviq)
no longer affects: qtmir
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.