scaleMouse method

void scaleMouse(
  1. Vector2 to, [
  2. double sensitivity = 1.0
])

Implementation

void scaleMouse(Vector2 to, [double sensitivity=1.0]){
  final double x = ((to.x - from.x))*sensitivity;
  final double y = ((to.y - from.y))*sensitivity;

  size = Size(size.width+x,size.height+y);

  from.x = to.x;
  from.y = to.y;
}