Skip to content

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

@cuiliang

Description

@cuiliang
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions