DragUpdateEvent constructor
DragUpdateEvent(
- int pointerId,
- Game game,
- DragUpdateDetails details
Implementation
DragUpdateEvent(this.pointerId, super.game, DragUpdateDetails details)
: timestamp = details.sourceTimeStamp ?? Duration.zero,
super(
deviceStartPosition: details.globalPosition.toVector2(),
deviceEndPosition:
details.globalPosition.toVector2() + details.delta.toVector2(),
);