bevyengine / bevyengine/bevy

Drag cursor for FeathersNumberInput is overbearing

Open
#25,232 0 comments 0 reactions 0 assignees View on GitHub
A-Art A-UI S-Needs-Design
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

The feathers number input widget uses the standard winit `ColResize` cursor when dragging. This cursor is a little too big and covers too much - it's hard to see the number value.

Unfortunately, winit's collection of standard cursors don't provide very many shapes. Although it has all of the enum variants of the CSS cursors, many of those variants map to the same icon.

The CSS "EWResize" is smaller and less intrusive than the "ColResize" cursor, but in winit those map to the same cursor image.

The only way to solve this is to use a custom cursor image. This will need to be an embedded asset (because Feathers cannot load assets from disk).

Contributor guide

Open the contributing guide

Research direction

Start by locating the FeathersNumberInput cursor handling and existing embedded asset patterns. Compare the current winit ColResize cursor with the proposed custom cursor while dragging, and verify that the number value remains visible and the widget still behaves correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.