jsxgraph/jsxgraph — pull request #121 by sebablanco (2014-11-27 06:19:42+00:00)
Title: Board.js: ignore touch move events triggered outside the board

Hi @migerh,

This is just a pull request to try bring feature parity between the behaviour of dragging a point with a mouse and on a touch device.

Currently on touch devices it is possible to drag elements outside of the board and if released there, you have no way of retrieving them.
You can check this on the following example: http://goo.gl/smVWsT, just drag the point on a tablet outside of the board and release it.

This is due to the browser triggering touchmove even when outside the board container, which is not the case for mousemove.
We just added code to touchmove to check if we are within the board boundaries and if not, we ignore the event.

Cheers,
Sebastian