Skip to content

Image Viewer scrolls with cursor anywhere in the window #1997

Description

@malramsay64

Is there an existing issue for this?

  • I have searched the existing issues.

Is this issue related to iced?

  • My hardware is compatible and my graphics drivers are up-to-date.

What happened?

Currently the image::Viewer widget captures all vertical scroll events, regardless of where the cursor is within the application. When combined with a touchpad and a horizontal scrolling widget, the slight vertical components within the horizontal scrolling adjust the image::Viewer along with the horizontal scroll widget.

What is the expected behavior?

I would expect that the cursor has to be over the widget for scroll events to affect it.

Version

master

Operating System

Linux

Do you have any log output?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions