aarddict/android — Issue #34: implement scroll and page turn using gestures
Author: bardo84
Created: 2012-01-26 07:23:51+00:00
State: open

Page turns result in much lower flicker on e-ink devices than scrolling, yet scrolling is necessary to align pages.

The handling of hardware buttons for page turns is quite devices dependent, so why not do the entire navigation using gestures:

A vertical swipe would scroll, as already implemented.
A horizontal swipe would turn the page back or forth.
Just takes a little checking and thresholds for x and y.

What is the coordinate system used in e.g. the Scrollto function? How can a delta x or delta y be detected?