simongray / sino.study

A modern Chinese dictionary.
http://sino.study/
8 stars 0 forks source link

Swiping back and forward through pages. #66

Open simongray opened 6 years ago

simongray commented 6 years ago

Can be accomplished using: https://github.com/dogfessional/react-swipeable

This allows for simple swipe handlers to be set to trigger navigation events backwards and forwards in history.

A bonus would be to have ReactTransitionGroups on the main elements to simulate a page appearing from the right or left.

simongray commented 6 years ago

Swiping flow

The swiping should be set on each individual article element in the search results, enabling a quick swipe into that entry. Swiping back on any page page will simply return to the previous page, while swiping forward will go to the next page (if the current is a previous page) or otherwise do nothing.