Skip to content

Pinch in Firefox does not work correctly #662

Open
@swnf

Description

@swnf

Describe the bug

A Firefox bug causes one pointer to "freeze" during a pinch gesture. This causes pinch in panzoom to work incorrectly. The easiest solution for this is to not call preventDefault() (which can have side effects depending on overflow/touch-actions/meta viewport).

Your environment

  • Version of panzoom: 4.4.4
  • Browser and browser version: Firefox Android 122

Expected behavior

Zoom should work like in other browsers.

Actual behavior

Pinch gestures on Firefox zoom less than expected. Sometimes the scale makes large jumps during a pinch gesture.

Steps to reproduce

This bug can be reproduced in the panzoom demo. Zoom in or out on a Firefox device using touch gestures. Hold your fingers on the screen until the scale of the image suddenly changes. If you cannot reproduce it, try to slightly move one finger after the pinch gesture while keeping the other stationary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions