### Attach (recommended) or Link to PDF file [compressed.tracemonkey-pldi-09.pdf](https://github.com/user-attachments/files/21145727/compressed.tracemonkey-pldi-09.pdf) (Can be reproduced with any PDF) ### Web browser and its version Firefox 140.0.4 (aarch64) ### Operating system and its version MacOS 15.5 ### PDF.js version v5.3.31 ### Is the bug present in the latest PDF.js version? Yes ### Is a browser extension No ### Steps to reproduce the problem Try zooming in and out on a touch screen device. ### What is the expected behavior? PDFs should zoom in smoothly ### What went wrong? The zoom is laggy and there's a left drift while zooming in. https://github.com/user-attachments/assets/d9590d33-a4d3-4298-ad7b-470be7fe2b32 ### Link to a viewer _No response_ ### Additional context _No response_