We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e039e8 commit f976c48Copy full SHA for f976c48
1 file changed
packages/react-dom/src/events/SyntheticEvent.js
@@ -207,7 +207,9 @@ export const MouseEventInterface: EventInterfaceType = {
207
if ('movementY' in event) {
208
return event.movementY;
209
}
210
- updateMouseMovementPolyfillState(event);
+ // Don't need to call updateMouseMovementPolyfillState() here
211
+ // because it's guaranteed to have already run when movementX
212
+ // was copied.
213
return lastMovementY;
214
},
215
};
0 commit comments