Skip to content

Update slider / scrollbar / number_input to use pointer capture #25705

Description

@viridia

Widgets that listen for drag events should also capture the pointer when dragging.

(Note that this is not true for widgets that do true drag-and-drop, but we don't have any of those. This only applies to widgets that self-drag, like sliders).

This includes:

  • Color Plane
  • Color Wheel
  • Slider
  • Scrollbar
  • FeathersNumberInput (which has its own dragging handlers since it's built around a text input)

...or just search for observers that listen for DragStart.

@alice-i-cecile @kfc35

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-UIGraphical user interfaces, styles, layouts, and widgetsC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!X-UncontroversialThis work is generally agreed upon

    Type

    No type

    Projects

    • Status
      Needs SME Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions