DioxusLabs / DioxusLabs/dioxus
Slider component is not usable when the App is launched with `dioxus_native::launch(App);`
- Dominant language
- Rust
- Stars
- 39.1k
- Forks
- 1.9k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 4
Description
**Problem**
When the App is launched with `dioxus_native::launch(App);`, the `Slider` component can't be clicked and dragged, and just stays static. Also, the thumb is displayed a bit under the `SliderThumb`.
**Steps To Reproduce**
Steps to reproduce the behavior:
- Create a dioxus project with `dx new` and use any sub-template you want
- Add `dioxus_native` to your `Cargo.toml`
- Create a `Slider` component, you can do that simply by doing `dx component add slider` and take the Demo component from [the Dioxus Components page](https://dioxuslabs.com/components/) for example
- in the `main()` function, replace :
```rust
dioxus::launch(App);
```
with :
```rust
dioxus_native::launch(App);
```
- Serve your app with `dx serve`
**Expected behavior**
The `Slider` component should properly work when clicked and dragged when launching the app with `dioxus_native`
**Screenshots**
https://github.com/user-attachments/assets/8d5941f3-dcc0-45fb-bb33-3a88437790fa
**Environment:**
- Dioxus version: v0.7.0 & v0.7.1
- Rust version: 1.91.1
- OS info: EndeavourOS with KDE Plasma 6.5.3
- App platform: desktop
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.