You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a PanResponder in a scaled view (either using transform: scale(...) or zoom properties), the event's locationX property is off.
Expected behavior
Calculating the locationX property should always be relative to View's actual dimensions.
Steps to reproduce
Open the linked CodeSandbox reproduction and open the browser console. When clicking any number, it should log the selected number (based on the locationX and the width of the container view) to the console
In the container view, uncomment either transform or zoom
When clicking on any number now, you'll see that those are off, and when clicking right next to the right border, the locationX is about half of width.current
Is there an existing issue for this?
Describe the issue
When using a
PanResponder
in a scaled view (either usingtransform: scale(...)
orzoom
properties), the event'slocationX
property is off.Expected behavior
Calculating the
locationX
property should always be relative to View's actual dimensions.Steps to reproduce
locationX
and the width of the container view) to the consoletransform
orzoom
locationX
is about half ofwidth.current
Test case
https://codesandbox.io/p/sandbox/silly-fire-hm63nd
Additional comments
No response
The text was updated successfully, but these errors were encountered: