saqimtiaz / streams

TiddlyWiki plugin for rapid data entry with a keyboard driven workflow. Divide content into smaller tiddlers as you write.
BSD 3-Clause "New" or "Revised" License
58 stars 6 forks source link

Swipe to indent/unindent with visual feedback #19

Open saqimtiaz opened 3 years ago

saqimtiaz commented 3 years ago

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.

arunnbabu81 commented 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.