in debug logs is visible that item was not selected and after clikcing r.selected_row = !r.selected_row properly converted r.selected_row = false into r.selected_row = true
second time with scrolling
selecting 4,5 element
in debug logs is visible that item was not selected and after clikcing r.selected_row = !r.selected_row shows that r.selected_row = falsenot changed value to true, but should
From issue https://github.com/slint-ui/slint/issues/2598#issuecomment-1773863372 - looks that this is different problem
Tested on latest 1.3.0 branch with applied 78d273e59956a6df2642ebb501a3d9465d7e035d(this fixed problem with invalid internal state btw)
When using slintpad link or slint-rust-template.zip
selecting and deselecting elements when listview is not scrolled works fine, but start to break when items are scrolled
https://github.com/slint-ui/slint/assets/41945903/ff0c6fcb-6232-4a0d-bb45-22548cd139ca
At video:
first time without scrolling
selecting 4,5 element
in debug logs is visible that item was not selected and after clikcing
r.selected_row = !r.selected_row
properly convertedr.selected_row = false
intor.selected_row = true
second time with scrolling
selecting 4,5 element
in debug logs is visible that item was not selected and after clikcing
r.selected_row = !r.selected_row
shows thatr.selected_row = false
not changed value to true, but should