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

全屏播放图片时,图片会先铺满屏幕,再变为正常比例 #613

Closed
coJwx opened this issue Sep 12, 2023 · 1 comment
Closed

Comments

@coJwx
Copy link

coJwx commented Sep 12, 2023

在点击全屏播放图片时,图片会先铺满屏幕,再变为正常比例,我希望的是一个等比例放大的过程(如果无法实现,能否仅去掉这个全屏过程的transition)。

viewer-play.mp4
@fengyuanchen
Copy link
Owner

fengyuanchen commented Sep 17, 2023

因为图片需要先下载。下载过程中宽度是100%。下载完成后才能计算适配尺寸。目前设计是允许下载过程可见,避免网速过慢时,用户无法收到下载进度及时反馈。

如需变更交互,可以自行重写 Viewer.prototype.play 原型方法一下。

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

No branches or pull requests

2 participants