Skip to content

chore!: Kill legacy Vertical/Horizontal drag detectors - #3993

Draft
luanpotter wants to merge 2 commits into
mainfrom
luan.kill-vh
Draft

chore!: Kill legacy Vertical/Horizontal drag detectors#3993
luanpotter wants to merge 2 commits into
mainfrom
luan.kill-vh

Conversation

@luanpotter

Copy link
Copy Markdown
Member

Description

Kill legacy Vertical/Horizontal drag detectors

Checklist

  • I have followed the Contributor Guide when preparing my PR.
  • I have updated/added tests for ALL new/updated/fixed functionality.
  • I have updated/added relevant documentation in docs and added dartdoc comments with ///.
  • I have updated/added relevant examples in examples or docs.

Breaking Change?

  • Yes, this PR is a breaking change.
  • No, this PR is not a breaking change.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the legacy game-level vertical and horizontal drag detector APIs ahead of Flame 2.0.

Changes:

  • Removes detector mixins, gesture registration, exports, and hit-testing support.
  • Deletes obsolete detector tests.
  • Adds migration guidance and updates gesture documentation.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/flame/lib/src/gestures/detectors.dart Removes legacy detector mixins.
packages/flame/lib/src/game/game_widget/gesture_detector_builder.dart Removes recognizer registration.
packages/flame/lib/src/game/flame_game.dart Updates game-level event hit testing.
packages/flame/lib/events.dart Removes public exports.
packages/flame/test/gestures/detectors_test.dart Removes detector unit tests.
packages/flame/test/game/game_widget/game_widget_drag_test.dart Removes widget integration tests.
doc/flame/migration.md Documents migration alternatives.
doc/flame/inputs/gesture_input.md Removes obsolete API documentation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants