Skip to content

fix: prevent Android Chrome taps from being detected as drag event#10332

Merged
snowystinger merged 3 commits into
mainfrom
fix_android_drag_detection
Jul 17, 2026
Merged

fix: prevent Android Chrome taps from being detected as drag event#10332
snowystinger merged 3 commits into
mainfrom
fix_android_drag_detection

Conversation

@LFDanLu

@LFDanLu LFDanLu commented Jul 15, 2026

Copy link
Copy Markdown
Member

slack reported issue

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Go to the S1 storybook -> Drag and Drop default story. Make sure tapping on the "Drag me" button doesn't start drag in Android Chrome. Make sure you can still drag and drop in iOS VoiceOver via double tapping said button and smoke check drag and drop on all other device/OS combos

NOTE: NVDA/JAWS keyboard drag and drop is broken due to #10310 it seems, unrelated to the changes in this PR

🧢 Your Project:

RSP

Comment thread packages/react-aria/src/dnd/useDrag.ts Outdated
writeToDataTransfer
} from './utils';
import intlMessages from '../../intl/dnd/*.json';
import {isIOS} from '../utils/platform';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should verify against #10312 as well

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

thanks, updated

@rspbot

rspbot commented Jul 15, 2026

Copy link
Copy Markdown

@snowystinger
snowystinger added this pull request to the merge queue Jul 17, 2026
Merged via the queue into main with commit a606197 Jul 17, 2026
32 checks passed
@snowystinger
snowystinger deleted the fix_android_drag_detection branch July 17, 2026 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants