applyTouchDelta method

void applyTouchDelta(
  1. double dx,
  2. double dy, {
  3. double touchSensitivity = 0.005,
})

Applies touch/pan input as rotation (fallback when no gyroscope).

Implementation

void applyTouchDelta(
  double dx,
  double dy, {
  double touchSensitivity = 0.005,
}) {
  target.rotate(-dx * touchSensitivity, -dy * touchSensitivity);
}