slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
17.64k stars 607 forks source link

SwipeGestureHandler makes all other swipeable controls inside it unusable #6781

Open igiona opened 1 week ago

igiona commented 1 week ago

When a SwipeGestureHandler is configured for detecting a swipe and it contains i.e. a slider, the slider gets barely usable.

You can try it on the main page in the following repo rs-watch repo.

There the gesture handler is configured to detect only left swipes. I want to detect a "go-back" action from the user.

In the VsCode previewer, you can press the "Settings" item, to land in the page in which a slider is present. Note that if you try to slider the slider first to the right and then to the left, everything seams alright. If you first move it to the right though, as soon as the SwipeGestureHandler detects the swipe gesture the slider stops being tracked.

Is this behaviour intentional? If yes, what's the preferred way to use the SwipeGestureHandler among with other "swipeable" UI elements?