okfn/annotator — Issue #78: Add support touch devices
Author: aron
Created: 2011-12-19 16:38:49+00:00
State: open

Currently the annotator does not listen for touch events and cannot be used for creating annotations on touch devices. Display of annotations works just fine.

This can be solved by mapping the click events to touch events:

mousedown => touchstart, mousemove => touchmove, mouseup => touchend

There a a few other points to consider.

* How well the text selection/range methods work on varying platforms.
* Whether the annotator interface conflicts with native controls (iOS displays a popup for copy/paste/select) actions. Can this be negated with `event.preventDefault()`?
* The suitability of the annotator itself for touch interaction (text areas and small hit areas).