react-spectrum
react-spectrum copied to clipboard
Clean up usePress code
- ~~We can probably get rid of the fallback events (mouse/touch) now since all supported browsers support pointer events.~~ https://github.com/adobe/react-spectrum/discussions/5636#discussioncomment-8053511 is why we can't get rid of the fall backs
- Clean up the various states to simplify the code.
- Possibly get rid of the custom hit testing. The code comment indicates that this was for iOS < 13.2 which is long gone, so possibly this isn't needed anymore. We will need to do some testing. Related: #1061 #1613
Hi all, is this being taken into consideration?
Yes, however, it has some nuances that we'll need to account for, see https://github.com/adobe/react-spectrum/discussions/5636#discussioncomment-8053511
feel free to make a PR for it
Would be great if a fix is introduced
https://github.com/adobe/react-spectrum/issues/5290
https://github.com/adobe/react-spectrum/issues/2506 is related
Please consider prioritizing this issue.