Closed xPaw closed 8 years ago
Just adding my two cents: I think on mobile the context menu should exist elsewhere as a button, similar to the 'leave' one. Perhaps we can replace the current leave channel ('x') button with a dropdown arrow?
I would rather try to make long press work instead of adding arrows.
I agree with @xPaw
For a button to work, we would need to increase the size of the sidebar, as trying to hit a button on that small name is near impossible currently (it's hard enough to hit the expando for link expander just now as it is).
If long press opens a context menu then how would mobile users rearrange channels and servers?
At least in Chrome on Android long press simply selects the text, you can't rearrange servers.
Figured out how to make the context menu work on mobiles, by adding user-select: none;
on the sidebar.
I really like this so far, looks really nice and it brings forward many features to the user, especailyl on mobile.
I think having a longpress on mobile, and right-click on desktop works really nicely as these are things people expect to do something like that.
I agree that longpress make sense on mobile, but I think there should be a way to reorganize channels and servers. That could be built into the context menu (ie “unlock” or “move down”) but that seems like an awkward UX choice
We could have a "grabber" (I forget what the proper word for them is) on touch-screen devices that you can use for reordering.
The question is why current grabbing stuff does't work on mobile. That should be triggered long before the contextmenu event.
EDIT: Shout is using sortable
from jQuery UI, and that doesn't work with mobile events by default. Including https://github.com/furf/jquery-ui-touch-punch/ makes it work.
Closing this in favor of https://github.com/thelounge/lounge/pull/9