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

ImageBrowser: after load big image, can not zoom out immediatly #777

Closed
cuiliang opened this issue Apr 11, 2021 · 0 comments
Closed

ImageBrowser: after load big image, can not zoom out immediatly #777

cuiliang opened this issue Apr 11, 2021 · 0 comments

Comments

@cuiliang
Copy link
Contributor

using System;
using GalaSoft.MvvmLight.Command;
using HandyControl.Controls;

namespace HandyControlDemo.ViewModel
{
    public class ImageBrowserDemoViewModel
    {
        public RelayCommand OpenImgCmd => new Lazy<RelayCommand>(() =>
            new RelayCommand(() =>
                new ImageBrowser(new Uri("C:\\Users\\cuili\\Pictures\\DSCF1221.JPG")
                ).Show())).Value;
    }
}

如果打开一张比较大的图:

  • 此时显示的比例是24%,但图像实际是1:1的尺寸。
    image

  • 这时候不能立即使用滚轮缩小图像(向用户方向滚动),只能向远离用户方向滚动(这个操作应该是放大图片,但实际缩小了一些)。 然后才能正常使用滚轮放大缩小。

test_imagebrowserbug.mp4
@NaBian NaBian closed this as completed in 6ce9130 Jun 15, 2021
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

1 participant