← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1616926] [NEW] Scrollbar thumb shows as hovered after mouse is released outside the thumb

 

Public bug reported:

ubuntu-ui-toolkit r2079

The fix to bug #1608897 created another issue.

The code that checks if the thumb is being hovered currently only checks
the y position of the input event, an optimization that worked well with
the previous assumption that releasing mouse would always reset the
hover state (but that was causing bug #1608897).

There were, in fact, 2 cases before:
- input device moves away (no pressed buttons) -> onExited is fired -> hover is reset
- input device moves away while press-hold is in progress --> onRelease will reset hover

Now that the behaviour changed and release does not reset the hover
state, we obviously need to check both x and y position

** Affects: canonical-devices-system-image
     Importance: Undecided
         Status: New

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: High
     Assignee: Andrea Bernabei (faenil)
         Status: New

** Affects: ubuntu-ui-toolkit (Ubuntu RTM)
     Importance: Undecided
     Assignee: Andrea Bernabei (faenil)
         Status: New

** Changed in: ubuntu-ui-toolkit (Ubuntu)
     Assignee: (unassigned) => Andrea Bernabei (faenil)

** Changed in: ubuntu-ui-toolkit (Ubuntu)
   Importance: Undecided => High

** Also affects: ubuntu-ui-toolkit (Ubuntu RTM)
   Importance: Undecided
       Status: New

** Also affects: canonical-devices-system-image
   Importance: Undecided
       Status: New

** Changed in: ubuntu-ui-toolkit (Ubuntu RTM)
     Assignee: (unassigned) => Andrea Bernabei (faenil)

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1616926

Title:
  Scrollbar thumb shows as hovered after mouse is released outside the
  thumb

Status in Canonical System Image:
  New
Status in ubuntu-ui-toolkit package in Ubuntu:
  New
Status in ubuntu-ui-toolkit package in Ubuntu RTM:
  New

Bug description:
  ubuntu-ui-toolkit r2079

  The fix to bug #1608897 created another issue.

  The code that checks if the thumb is being hovered currently only
  checks the y position of the input event, an optimization that worked
  well with the previous assumption that releasing mouse would always
  reset the hover state (but that was causing bug #1608897).

  There were, in fact, 2 cases before:
  - input device moves away (no pressed buttons) -> onExited is fired -> hover is reset
  - input device moves away while press-hold is in progress --> onRelease will reset hover

  Now that the behaviour changed and release does not reset the hover
  state, we obviously need to check both x and y position

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1616926/+subscriptions


Follow ups