Skip to content

While a tab is carried, the selected tab's white disc gets a dark bite and can be dragged out under the bar's end #226

Closed

Description

@lumenpearson

What is broken. Two artifacts from rearranging the bar on the owner's phone:

  • The white disc of the selected tab showed a dark notch on one edge.
  • The white disc was cut in half by the pill's rounded end.

Cause.

  • An unselected tab's disc is painted in scheme.primary, the pill's own colour, so normally it is invisible. Carried, the tab is drawn above its neighbours at 1.1×. Nudged toward the selected tab, its pill-coloured disc covers part of the white one: a dark bite.
  • The carried tab follows the raw finger offset (dragPx += delta) with no bounds. dropIndex already parks a finger that has left the bar at the end slot, so every pixel beyond the end only moves the disc out under the pill's clipped end.

Expected.

  • The carried tab stays within the row.
  • An unselected tab's disc is transparent at rest and has a colour of its own while carried, so it never paints over the selected one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions