onTouchEnd method
dynamic
onTouchEnd(
- dynamic event
Implementation
onTouchEnd(event) {
switch (_pointers.length) {
case 0:
_state = State.none;
break;
case 1:
_state = State.touchRotate;
_moveCurr.copy(getMouseOnCircle(event.pageX, event.pageY));
_movePrev.copy(_moveCurr);
break;
case 2:
_state = State.touchZoomPan;
_moveCurr.copy(getMouseOnCircle(event.pageX - _movePrev.x, event.pageY - _movePrev.y));
_movePrev.copy(_moveCurr);
break;
}
scope.dispatchEvent(_endEvent);
}