Open iamsix opened 1 year ago
Having the same issue, scrolling works "sometimes" then I figured out that it's working if you hit the padding between the buttons
ahh, I think I get what you mean, drag scroll via grabbing a button and scrolling up or down is not working. and yeah I doubt it would since in this case a button is what you pressed. best way to solve this is probably make the scrollbar itself wider so its easier to touch with the finger on screen. Not sure there is much you can do on this currently...
Is there an existing issue for this?
Is this issue related to iced?
What happened?
When filling a
scrollable
entirely with a column ofbutton
s the width of thescrollable
, it's impossible to touch-scroll thatscrollable
since thebutton
appears to consume the touch event before thescrollable
gets it. Note mouse scrollwheel scrolling does work properly however.I was trying to use this to approximate something like android's
ListView
where each item in the list is clickable.Basic example testcase: https://gist.github.com/iamsix/dabd737e2dfa2f81b23c61353f6f3b8f
What is the expected behavior?
The scrollable should still function with touch scrolling.
Version
crates.io release
Operating System
Windows
Do you have any log output?
No response