Open saqimtiaz opened 3 years ago
How about implementing swipe gesture just like being done by WhatsApp in iOS - If the swipe is of sufficient distance, indent or unindent is triggered. If the swipe is shorter, just like in WhatsApp, show options like context menu, indent/unindent etc. and select which ever is needed.
A quick attempt at implementing this via wikitext went far better than expected. There is a slight issue with premature snap back at times, possibly when the finger slips. It may be necessary to add a delay before triggering the swipe-end event.
Also at times the swipe event gets triggered before there is a chance for the visual feedback to occur. Once option here would be to not use the swipe event to trigger the swipe actions, but rather the swiping event reaching the desired threshold + swipe-end.