scaleMouse method

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

Implementation

void scaleMouse(Vector2 to, [double sensitivity=1.0]){
  if(!scaleAllowed) return;
  final double x = ((to.x - from.x))/10000*sensitivity;
  final double y = ((to.y - from.y))/10000*sensitivity;
  //size = Size(size.width+x,size.height+y);
  scale.x += x;
  scale.y += y;
  from.x = to.x;
  from.y = to.y;
  updateTransform();
}