onDoublePanMove method
void
onDoublePanMove()
Implementation
void onDoublePanMove() {
if (enabled && enablePan) {
setCenter(
(_touchCurrent[0].clientX + _touchCurrent[1].clientX) / 2,
(_touchCurrent[0].clientY + _touchCurrent[1].clientY) / 2);
if (_state != State2.pan) {
updateTbState(State2.pan, true);
_startCursorPosition.setFrom(_currentCursorPosition);
}
_currentCursorPosition.setFrom(
unprojectOnTbPlane(
camera, _center.x, _center.y, true
)
);
applyTransformMatrix(pan(_startCursorPosition, _currentCursorPosition, true));
dispatchEvent(_changeEvent);
}
}