mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
Draggables weren't using the new coordinate system (#777)
* refactoring drag start events * Fixing joystick, adding tests and examples * format fixes
This commit is contained in:
@ -39,9 +39,9 @@ class MultitapAdvancedGame extends BaseGame
|
||||
}
|
||||
|
||||
@override
|
||||
void onDragStart(int pointerId, Vector2 position) {
|
||||
void onDragStart(int pointerId, DragStartInfo info) {
|
||||
end = null;
|
||||
start = position;
|
||||
start = info.eventPosition.game;
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user