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

mouse scroll event delta doesn't fire the ScrollDelta::Pixels only the ScrollDelta::Lines #2561

Open
4 tasks done
icedpygui opened this issue Aug 29, 2024 · 1 comment
Open
4 tasks done
Labels
bug Something isn't working

Comments

@icedpygui
Copy link

icedpygui commented Aug 29, 2024

Is your issue REALLY a bug?

updating this comment: In viewer.rs line 172, your match is with either lines or pixels so you return lines regardless. So maybe you should separate this out or just do lines??

  • My issue is indeed a bug!
  • I am not crazy! I will not fill out this form just to ask a question or request a feature. Pinky promise.

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?

While trying to incorporate the mouse ScrollDelta::Pixels into icedpygui, previously only used the ScrollDelta::Lines, I have determined that it does not fired the Pixels, only the Lines. I ran the event example and since it displays all of the events, Pixels is missing. I used the example in the master and the example in the latest repos.

What is the expected behavior?

the event ScrollDelta::Pixels is fired.

Version

master

Operating System

Linux

Do you have any log output?

Here's a print out of part of the output of the event example.

Keyboard(ModifiersChanged(Modifiers(0x0)))
Keyboard(ModifiersChanged(Modifiers(0x0)))
Mouse(CursorMoved { position: Point { x: 526.7842, y: 579.4448 } })
Mouse(WheelScrolled { delta: Lines { x: 0.0, y: -1.0 } }) <---------only Lines
Keyboard(ModifiersChanged(Modifiers(0x0)))
Keyboard(ModifiersChanged(Modifiers(0x0)))
Mouse(CursorMoved { position: Point { x: 526
@icedpygui icedpygui added the bug Something isn't working label Aug 29, 2024
@edwloef
Copy link
Contributor

edwloef commented Sep 20, 2024

ScrollDelta::Pixels is fired when e.g. scrolling on a trackpad.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants