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 the event is mousedown, the event has clientX and clientY. When the event is a touchstart, clientX and clientY are missing. clientX and clientY are instead found within evt.touches property.
Reproduce
put debugger at beginning of setTransformOrigin method
start text field demo
enter chrome into mobile mode with dev tools
click one of the text field's
Result:
You'll notice that evt.clientX or evt.clientY does not exist.
The text was updated successfully, but these errors were encountered:
related material-components/material-components-web-react#275
The touchstart event listener in text field's foundation.js is bound to this callback function:
When the event is
mousedown
, the event hasclientX
andclientY
. When the event is atouchstart
,clientX
andclientY
are missing.clientX
andclientY
are instead found withinevt.touches
property.Reproduce
setTransformOrigin
methodResult:
You'll notice that
evt.clientX
orevt.clientY
does not exist.The text was updated successfully, but these errors were encountered: