update method

void update()

Implementation

void update(){
  _updateDirection();
  final width = screenSize.width / 2;
  final height = screenSize.height / 2;
  _backgroundSprite?.position.setValues(-width+margin.left, -height+margin.bottom, 1 ); // bottom right
  if(_intersections.isEmpty){
    _knobSprite?.position.setValues( -width+margin.left+(size/1.5-size/2), -height+margin.bottom+(size/1.5-size/2), 1 ); // bottom right
    origin.setValues( -screenSize.width+margin.left+(size/1.5-size/2), -screenSize.height+margin.bottom+(size/1.5-size/2), 1 );
  }
}