echarts icon indicating copy to clipboard operation
echarts copied to clipboard

[Bug] Pinch on maps has too high scale factor, thus feeling unnatural

Open mephinet opened this issue 3 years ago • 2 comments

Version

5.4.1

Link to Minimal Reproduction

https://echarts.apache.org/examples/en/editor.html?c=map-usa

Steps to Reproduce

Open https://echarts.apache.org/examples/en/editor.html?c=map-usa on a smartphone. Use your fingers to pinch into the map.

Current Behavior

The zooming does not feel natural, because the scale factor is too high. E.g., when the fingers move by 1 cm, the map below the fingers moves by 3 cm.

Expected Behavior

When moving the fingers, the location of the map below each finger should stay fixed while the fingers move.

Environment

- OS: Android 12
- Browser: Chromium, Brave

Any additional comments?

I couldn't find the initial commit that started providing this hard-coded value, but maybe @100pah, who did a lot of work on the RoamController, can comment on why the calculated pinchScale is ignored and hard-coded to 1.1...

mephinet avatar Dec 27 '22 14:12 mephinet

Would anybody support my PR #21068 to bring this fix live?

daxcore avatar Jul 21 '25 19:07 daxcore

Please prioritize this issue, it really is overly sensitive when zooming/pinching 🙏 It seems like the PR has a simple fix for it.

frontmatec-phd avatar Nov 18 '25 09:11 frontmatec-phd