handleTouchMoveDolly method
dynamic
handleTouchMoveDolly(
- dynamic event
Implementation
handleTouchMoveDolly(event) {
var position = getSecondPointerPosition(event);
print("handleTouchMoveDolly event.pageX: ${event.pageX} position.x: ${position.x} ");
print("handleTouchMoveDolly event.pageY: ${event.pageY} position.y: ${position.y} ");
var dx = event.pageX - position.x;
var dy = event.pageY - position.y;
var distance = Math.sqrt(dx * dx + dy * dy);
dollyEnd.set(0, distance);
dollyDelta.set(0, Math.pow(dollyEnd.y / dollyStart.y, scope.zoomSpeed).toDouble());
dollyOut(dollyDelta.y);
dollyStart.copy(dollyEnd);
}