Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

以最后一次缩放的触摸位置为缩放原点缩放图像 #562

Open
rhyryy opened this issue Sep 17, 2022 · 1 comment
Open

以最后一次缩放的触摸位置为缩放原点缩放图像 #562

rhyryy opened this issue Sep 17, 2022 · 1 comment

Comments

@rhyryy
Copy link

rhyryy commented Sep 17, 2022

Is your feature request related to a problem? Please describe.
#553 相反
用户通过滚轮和触摸事件缩放图像时,缩放原点取决于 mousestart 或 touchstart 事件位置,而使用zoomTo或zoom放大时缩放原点取在图像中心,这样会使得图片在放大过程中发生位移,不能保持在原位置放大
Describe the solution you'd like
为zoomTo添加设置缩放原点的方法或者在添加以最后一次mousestart 或 touchstart 事件位置为缩放原点的配置项

@SusieWen777
Copy link

Hello @fengyuanchen , I am a beginner in contributing to open-source projects and am very interested in this issue. I believe I have some ideas on how to approach it. Could I work on it?

SusieWen777 added a commit to SusieWen777/viewerjs that referenced this issue Oct 20, 2023
This commit addresses the issue of zoom origin when using zoom and zoomTo functions.

Closes fengyuanchen#562
SusieWen777 added a commit to SusieWen777/viewerjs that referenced this issue Oct 20, 2023
This commit refines the comments for clarity regarding the zoom origin behavior when using zoom and zoomTo functions. Additionally, the project has been rebuilt.

Closes fengyuanchen#562
SusieWen777 added a commit to SusieWen777/viewerjs that referenced this issue Oct 20, 2023
This commit addresses the issue of zoom origin when using zoom and zoomTo functions.

Closes fengyuanchen#562
SusieWen777 added a commit to SusieWen777/viewerjs that referenced this issue Oct 20, 2023
This commit refines the comments for clarity regarding the zoom origin behavior when using zoom and zoomTo functions. Additionally, the project has been rebuilt.

Closes fengyuanchen#562
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants