Skip to content

Pinch and other Gestures #31

Open
Open
@hmaarrfk

Description

@hmaarrfk

Describe the bug

Some of my users complained about "not being able to zoom". We couldn't figure it out until one of them tried to do so on my laptop, and we noticed they were trying to pinch on the trackpad to zoom.

Are these kinds of gestured captured in the WGPU/PyGFX stack? I tried to search of "pinch" in the codebase and couldn't find anything.

To Reproduce

Truthfully, its a little difficult for me to test this since I am linux and "pinch" is really only "supported" by "wayland" and xwayland is used to build the wgpu canvas.

Observed behavior

Users accustomed to apple's zoom in "gestures" try to pinch to zoom with 2 fingers on the trackpad with the PanZoomController on PyGFX and they say "well that doesn't work" and don't zoom into the images.

Your environment

 $ mamba list | grep -E "(wgpu|pyside|pygfx)"
pygfx                     0.2.0              pyhd8ed1ab_0    conda-forge
pyside6                   6.7.0           py310h7a3fa89_1    conda-forge
wgpu-native               0.19.3.1             h2b8f863_0    conda-forge
wgpu-py                   0.15.2             pyha804496_0    conda-forge
██ system:

             platform:  Linux-6.8.0-31-generic-x86_64-with-glibc2.39
python_implementation:  CPython
               python:  3.10.13

██ versions:

wgpu:  0.15.1

Generally running Wayland + PySide6

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions