alexispurslane / neo

An Android-native, Material You-based, slick, clean, UX-first Matrix client
GNU General Public License v3.0
14 stars 1 forks source link

Switch from long presses to swiping to activate the message menu. #20

Open alexispurslane opened 1 month ago

alexispurslane commented 1 month ago

Swiping using AnchoredDragable did not work because nested anchor-dragables aren't apparently possible in Jetpack Compose 1.6.1. So I temporarily switched to long press in the meantime, but long press activates text selection as well as the message menu, which has obvious usability problems, and in addition long press is less ergonomic and efficient to use than swiping, so I'm going to have to implement my own nestable anchored draggable.

alexispurslane commented 1 month ago

https://github.com/alexispurslane/neo/blob/515524957eda8cf3796d20790b150c9498533a84/app/src/main/java/io/github/alexispurslane/neo/ui/composables/misc/MessageComposables.kt#L461