NightRa opened a new pull request, #21655: URL: https://github.com/apache/echarts/pull/21655
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? Use the actual frame-to-frame pinch scale reported by ZRender when handling roam zoom gestures. ## Details ### Before: What was the problem? Touch pinch zoom was converted to a fixed zoom step: ```ts e.pinchScale > 1 ? 1.1 : 1 / 1.1 ``` This discarded the actual pinch magnitude from ZRender. Small finger-distance changes, such as a 1.01 pinch scale, were treated as 1.1, causing touch zoom to compound too aggressively across consecutive touchmove frames. ### After: How does it behave after the fixing? RoamController now forwards `e.pinchScale` directly. This makes touch pinch zoom track the actual finger-distance change more closely and improves `dataZoom.inside` behavior on mobile/touch devices. Manually verified with `test/dataZoom-timeAxis.html` on a touch device. ## Document Info One of the following should be checked. - [x] This PR doesn't relate to document changes - [ ] The document should be updated later - [ ] The document changes have been made in apache/echarts-doc#xxx ## Misc ### Security Checking - [ ] This PR uses security-sensitive Web APIs. ### ZRender Changes - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs `test/dataZoom-timeAxis.html` ### Merging options - [ ] Please squash the commits into a single one when merging. ### Other information -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
