Skip to content

single finger scale gesture #13102

@wmleler

Description

@wmleler

onScaleUpdate is being triggered for a GestureDetector even when the user is touching the screen with only a single finger. In this case, details.scale is 1.0. I don't know the behavior of iOS or Android, but it seems like scale update should not be triggered for a single finger.

This is a problem because when a user is placing or removing two fingers on the screen, often one finger will remain for a brief time, which will reset the scale factor and cause ugly jank.

The workaround would be for the developer to listen for onScaleStart and onScaleEnd and based on those listen for onScaleUpdate only during the time scale is active.

See also issue #13101

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listf: gesturesflutter/packages/flutter/gestures repository.found in release: 3.7Found to occur in 3.7found in release: 3.9Found to occur in 3.9frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions