naver / egjs-view360

360 integrated viewing solution
https://naver.github.io/egjs-view360/
MIT License
483 stars 89 forks source link

How to implement two-finger zoom on the mobile terminal #436

Open EarhartZhao opened 8 months ago

EarhartZhao commented 8 months ago

Description

I find a demo https://naver.github.io/egjs-view360/v3/examples/panoviewer/controls/motion-touch.html. But I did not find the corresponding api and code under the v4 version.

nguyenph194812 commented 5 months ago

i also found out that zoom using 2 fingers on mobile device is unavailable, and the interaction on mobile is very laggy

EarhartZhao commented 5 months ago

i also found out that zoom using 2 fingers on mobile device is unavailable, and the interaction on mobile is very laggy

I set the options zoom: { duration: 500 }, zoomRange: { min: 0.4, max: 2 }, and it work. you can try it.

nguyenph194812 commented 5 months ago

@EarhartZhao i set as you but i still cant zoom using 2 fingers on android. can u check it on the homepage of the library ?

EarhartZhao commented 5 months ago

@nguyenph194812 I write a https://github.com/EarhartZhao/view360-demo and can implement two-finger zoom on one plus 11