bevyengine / bevyengine/bevy

Update slider / scrollbar / number_input to use pointer capture

Open
#25,705 1 comment 0 reactions 0 assignees View on GitHub
A-UI C-Usability D-Trivial S-Ready-For-Implementation X-Uncontroversial
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

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

Contributor guide

Open the contributing guide

Research direction

Search for observers that listen for DragStart, then inspect the Color Plane, Color Wheel, Slider, Scrollbar, and FeathersNumberInput drag handlers. Done means self-dragging widgets capture the pointer while dragging, while true drag-and-drop behavior remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
game-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.