pixijs / ui

Commonly used UI components for PixiJS

Home Page:https://pixijs.io/ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Slider: The event listening area for drag events should be the slider instead of the background

hotyes opened this issue · comments

Please Describe The Problem To Be Solved
The current event listener are adding on the bg instead of the slider, which is counterintuitive.

Sometimes we also want to design the background of the slider as a thin line, but the slider is larger. In the current behavior, it is not easy for the user to drag the slider.

image

(Optional): Suggest A Solution

Add event listeners to "slider" instead of "bg", or to both.

hi @CyberDex is this fixed in v1.0.0? I just tried but seems still the same

PR #137 does not resolve this issue and remains in v1 and v2

The PR that references the issue seems to be fixing most of the problems except for sliding outside of bounds.

image

What I circled above is non-interactive and it's hard for users to move the slider unless they drag the other half.