Open m-sasha opened 2 weeks ago
On iOS (or other platforms with touch), the current selection is cleared on touch-up in SelectionContainer after dragging to scroll.
SelectionContainer
Affected platforms
Versions
To Reproduce
Expected behavior Selection should not be cleared.
Screenshots https://github.com/JetBrains/compose-multiplatform/assets/5230206/e41a45cc-0f42-480a-8420-5fb2230b99b0
Additional context The selection is cleared by SelectionManager.Modifier.onClearSelectionRequested, because the scroll is not recognized as a drag, so basically it thinks it was a click (because the pointer didn't move relative to the element).
SelectionManager.Modifier.onClearSelectionRequested
On iOS (or other platforms with touch), the current selection is cleared on touch-up in
SelectionContainer
after dragging to scroll.Affected platforms
Versions
To Reproduce
Expected behavior Selection should not be cleared.
Screenshots https://github.com/JetBrains/compose-multiplatform/assets/5230206/e41a45cc-0f42-480a-8420-5fb2230b99b0
Additional context The selection is cleared by
SelectionManager.Modifier.onClearSelectionRequested
, because the scroll is not recognized as a drag, so basically it thinks it was a click (because the pointer didn't move relative to the element).