diff --git a/packages/flame/lib/src/game/mixins/has_tappables.dart b/packages/flame/lib/src/game/mixins/has_tappables.dart index 44aa7319b..3882e7917 100644 --- a/packages/flame/lib/src/game/mixins/has_tappables.dart +++ b/packages/flame/lib/src/game/mixins/has_tappables.dart @@ -79,7 +79,16 @@ mixin HasTappables on FlameGame implements MultiTapListener { void mount() { gestureDetectors.add( MultiTapGestureRecognizer.new, - (MultiTapGestureRecognizer instance) {}, + (MultiTapGestureRecognizer instance) { + instance.longTapDelay = Duration( + milliseconds: (longTapDelay * 1000).toInt(), + ); + instance.onTap = handleTap; + instance.onTapDown = handleTapDown; + instance.onTapUp = handleTapUp; + instance.onTapCancel = handleTapCancel; + instance.onLongTapDown = handleLongTapDown; + }, ); super.mount(); }