support drag gesture. Fixes #573