Skip to content

Commit 426013e

Browse files
committed
Fix dragging cards on mobile
1 parent 69f4c99 commit 426013e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/lib/board/hand/item.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ abstract class HandItem<T> extends PositionComponent
225225

226226
@override
227227
void onDragEnd(DragEndEvent event) {
228-
super.onDragEnd(event);
229228
_dragSprite?.removeFromParent();
230229
_dragSprite = null;
231230
if (isMouseOrLongPressing ?? true) {
@@ -236,6 +235,7 @@ abstract class HandItem<T> extends PositionComponent
236235
if (zone != null) moveItem(zone);
237236
}
238237
_resetPosition();
238+
super.onDragEnd(event);
239239
}
240240

241241
@override

metadata/en-US/changelogs/6.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* Fix items overflowing with size
55
* Add config system for server
66
* Add error handling for invalid packs
7+
* Fix dragging cards on mobile
78
* Fix world not loading in multiplayer
89
* Fix team creation not working
910
* Fix team changes not being synced correctly in multiplayer

0 commit comments

Comments
 (0)