Skip to content

Touch pinching not being detected as wheel event in Windows 11 #872

@Archer6621

Description

@Archer6621

Hey all, I've been playing around with fastplotlib and touch, and I noticed that zooming by pinching doesn't seem to work at all, at least not in a basic 2d scatter plot, on Windows 11.

Just to confirm whether it wasn't a problem with my machine, I tested it in the Windows Photos app, with a USB-C touch screen, and there I could zoom on an image by pinching.

Then I went back to fastplotlib and attached an event handler to my figure's renderer for wheel that simply prints to the output, as the user guide states that pinching in touch should be recognized as a wheel event. Testing it out with a mouse wheel and touch pad scrolling did result in the print happening, but attempting to pinch with the touch screen on the scatterplot did not cause any prints at all, implying that the event did not fire.

I have tested this with 2 different touch screens so far, same result. It seems that the pinch gesture is not being picked up by the wheel event for some reason. It does seem to move the cursor when I am trying to pinch, but it only moves it to one of the two fingers, as if it is not recognizing that I am using touch.

This is on fastplotlib 0.5.0, with imgui support, Python 3.13.5, and Windows 11 Home 10.0.26100 Build 26100.

Any clue?

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