Skip to content

[Flare] Fix isPressWithinResponderRegion logic#15808

Merged
necolas merged 1 commit into
facebook:masterfrom
necolas:react-events/fix-area-calc
Jun 3, 2019
Merged

[Flare] Fix isPressWithinResponderRegion logic#15808
necolas merged 1 commit into
facebook:masterfrom
necolas:react-events/fix-area-calc

Conversation

@necolas
Copy link
Copy Markdown
Contributor

@necolas necolas commented Jun 3, 2019

Compare the viewport-relative coordinates of getBoundingClientRect with those
of the event's client{X,Y} values. This fixes press within scrollable nodes.

Compare the viewport-relative coordinates of getBoundingClientRect with those
of the event's client{X,Y} values. This fixes press within scrollable nodes.
@sizebot
Copy link
Copy Markdown

sizebot commented Jun 3, 2019

Details of bundled changes.

Comparing: 07da821...99c6f5c

react-events

File Filesize Diff Gzip Diff Prev Size Current Size Prev Gzip Current Gzip ENV
react-events-hover.development.js 0.0% +0.1% 8.41 KB 8.41 KB 2.07 KB 2.07 KB UMD_DEV
react-events-drag.development.js 0.0% +0.1% 5.74 KB 5.74 KB 1.63 KB 1.63 KB UMD_DEV
react-events-hover.production.min.js 0.0% 🔺+0.2% 3.62 KB 3.62 KB 1.36 KB 1.36 KB UMD_PROD
react-events-drag.production.min.js 0.0% 🔺+0.2% 2.54 KB 2.54 KB 1.16 KB 1.16 KB UMD_PROD
react-events.development.js 0.0% +0.1% 1.31 KB 1.31 KB 707 B 708 B UMD_DEV
react-events-focus-scope.development.js 0.0% +0.1% 4.79 KB 4.79 KB 1.45 KB 1.45 KB UMD_DEV
ReactEventsPress-dev.js -7.0% -9.0% 23.52 KB 21.87 KB 5.44 KB 4.95 KB FB_WWW_DEV
react-events-focus-scope.production.min.js 0.0% 🔺+0.2% 2.01 KB 2.01 KB 1019 B 1021 B UMD_PROD
ReactEventsPress-prod.js -3.9% -5.2% 19.67 KB 18.91 KB 4.06 KB 3.85 KB FB_WWW_PROD
react-events-focus-scope.development.js 0.0% +0.1% 4.6 KB 4.6 KB 1.4 KB 1.4 KB NODE_DEV
react-events.production.min.js 0.0% 🔺+0.3% 512 B 512 B 353 B 354 B NODE_PROD
react-events-focus-scope.production.min.js 0.0% 🔺+0.2% 1.82 KB 1.82 KB 928 B 930 B NODE_PROD
react-events-focus.development.js 0.0% +0.1% 7.09 KB 7.09 KB 1.82 KB 1.83 KB UMD_DEV
react-events-focus.production.min.js 0.0% 🔺+0.2% 3.08 KB 3.08 KB 1.19 KB 1.19 KB UMD_PROD
react-events-focus.development.js 0.0% +0.1% 6.91 KB 6.91 KB 1.77 KB 1.77 KB NODE_DEV
react-events-focus.production.min.js 0.0% 🔺+0.2% 2.9 KB 2.9 KB 1.11 KB 1.11 KB NODE_PROD
react-events-hover.development.js 0.0% +0.1% 8.23 KB 8.23 KB 2.02 KB 2.02 KB NODE_DEV
react-events-drag.development.js 0.0% 0.0% 7.5 KB 7.5 KB 2.3 KB 2.3 KB NODE_DEV
react-events-hover.production.min.js 0.0% 🔺+0.2% 3.45 KB 3.45 KB 1.3 KB 1.3 KB NODE_PROD
react-events-drag.production.min.js 0.0% 🔺+0.1% 3.18 KB 3.18 KB 1.46 KB 1.46 KB NODE_PROD
react-events-press.development.js -7.2% -9.1% 22.71 KB 21.07 KB 5.32 KB 4.84 KB UMD_DEV
react-events-swipe.development.js 0.0% +0.1% 6.19 KB 6.19 KB 1.76 KB 1.76 KB UMD_DEV
react-events-press.production.min.js -4.4% -5.7% 8.12 KB 7.76 KB 2.88 KB 2.71 KB UMD_PROD
react-events-swipe.production.min.js 0.0% 🔺+0.2% 2.68 KB 2.68 KB 1.25 KB 1.25 KB UMD_PROD
react-events-press.development.js -7.3% -9.1% 22.53 KB 20.89 KB 5.26 KB 4.78 KB NODE_DEV
react-events-press.production.min.js -4.5% -5.6% 7.94 KB 7.58 KB 2.82 KB 2.67 KB NODE_PROD
react-events-swipe.production.min.js 0.0% 🔺+0.1% 3.32 KB 3.32 KB 1.54 KB 1.55 KB NODE_PROD

Generated by 🚫 dangerJS

@necolas necolas merged commit dd43cb5 into facebook:master Jun 3, 2019
rickhanlonii pushed a commit to rickhanlonii/react that referenced this pull request Jun 25, 2019
Compare the viewport-relative coordinates of getBoundingClientRect with those
of the event's client{X,Y} values. This fixes press within scrollable nodes.
@necolas necolas deleted the react-events/fix-area-calc branch December 20, 2019 15:36
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