Skip to content

[Drag] Add support for touch gestures - #5418

Merged
Vincent Baaij (vnbaaij) merged 15 commits into
microsoft:devfrom
MarvinKlein1508:touch-support
Oct 12, 2026
Merged

Vincent Baaij (vnbaaij) merged 15 commits into
microsoft:devfrom
MarvinKlein1508:touch-support

Conversation

@MarvinKlein1508

Copy link
Copy Markdown
Collaborator

Pull Request

📖 Description

This PR improves the FluentDragContainer and FluentDropZone by adding native touch support.

touch.mp4

🎫 Issues

Fix #4367

✅ Checklist

General

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

Component-specific

  • I have added a new component
  • I have added Unit Tests for my new component
  • I have modified an existing component
  • I have validated the Unit Tests for an existing component

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.

🟡 Changes recommended

Mutable IDs and unescaped selectors can break touch routing and leak registered handlers.

3 open findings
What changed in this PR

Adds touch gesture support to drag containers and drop zones.

Changes:

  • Adds long-press touch dragging, ghost previews, and auto-scroll.
  • Connects touch events to existing Blazor drag handlers.
  • Adds component and interop tests.
File Description
FluentDragTests.razor Tests touch interop and event flow.
FluentDragTests.FluentDrag_Default.verified.razor.html Updates default snapshot.
FluentDragTests.FluentDrag_StopPropagation.verified.razor.html Updates propagation snapshot.
FluentDropZone.razor Adds touch metadata attributes.
FluentDropZone.razor.cs Registers zones and shares drag handlers.
FluentDropZone.razor.css Styles touch dragging states.
FluentDragContainer.razor.cs Adds JavaScript lifecycle and touch callbacks.
FluentDragContainer.razor.ts Implements touch gesture handling.

🧠 Review effort: Balanced


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

@vnbaaij
Vincent Baaij (vnbaaij) dismissed their stale review October 9, 2026 15:44

Unimportant change

@vnbaaij
Vincent Baaij (vnbaaij) enabled auto-merge (squash) October 9, 2026 15:45
auto-merge was automatically disabled October 9, 2026 22:12

Head branch was pushed to by a user without write access

@vnbaaij

Copy link
Copy Markdown
Collaborator

Copilot please fix the merge conflicts in this pull request.

@vnbaaij
Vincent Baaij (vnbaaij) enabled auto-merge (squash) October 10, 2026 06:11
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.

[dev-v5] feat: add touchscreen support for FluentDropzone

4 participants