Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added slider step support #180

Merged
merged 6 commits into from
Jul 30, 2024
Merged

Conversation

CatchABus
Copy link
Contributor

This PR adds support for steps on Slider. For now, it's implemented for single sliders only due to DoubleSlider being a bit more complex. We could try this implementation and see how it goes, then add it to more components.

Closes #37 #179

@CyberDex CyberDex merged commit 2faea73 into pixijs:main Jul 30, 2024
1 check passed
@hotyes
Copy link

hotyes commented Oct 1, 2024

Hello, is this supported in v1.1.3? I got this error Object literal may only specify known properties, and 'step' does not exist in type 'SliderOptions'.ts(2353)

@CatchABus
Copy link
Contributor Author

Hello, is this supported in v1.1.3? I got this error Object literal may only specify known properties, and 'step' does not exist in type 'SliderOptions'.ts(2353)

I think this should be available in 1.1.4 and 1.1.5.

@CyberDex
Copy link
Member

@hotyes, this one was merged before 2.1.3. So it should be available from 2.1.3 and later for Pixi v8 and 1.1.4 for Pixi 7.
Check this example (there is a step setting on the right panel)

@CyberDex
Copy link
Member

Also, you may check this repo to play with this setting.

To see the slider, once you run the app, go to settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make sliders steps more visual
3 participants