Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on Mar 28, 2024
    6ce9130
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      ⌂ 换网址