Pointer Event Movement Y Not Working on Iphone

I found the solution. so to find the value of offsetY/movementY I use the formula currentEvent.movementY = currentEvent.screenY - previousEvent.screenY

This is the PG: Custom Camera Movement [Solved] | Babylon.js Playground (babylonjs.com)

Reference : MouseEvent.movementY - Web APIs | MDN (mozilla.org)

2 Likes