Skip to content

[syncfusion_flutter_pdfviewer] Pinch-to-zoom works only if you start first pinching with a single finger #2387

Open
@AlanJereb

Description

@AlanJereb

Bug description

In a multi-page PDF document, syncfusion_flutter_pdf's pinch-to-zoom will work only if you start "pinching" with one finger, and then the second one. If you try to pinch and zoom with both fingers simultaneously, zooming won't work.

Steps to reproduce

  1. Open multi-page SfPdfViewer.file
  2. Try pinch-to-zoom with both fingers at the same time

Code sample

Code sample
SfPdfViewer.file(
  File(item),
  maxZoomLevel: 20,
)

Screenshots or Video

Screenshots / Video demonstration

Image

Stack Traces

There are no applicable stack traces. No exception is thrown.

On which target platforms have you observed this bug?

Android

Flutter Doctor output

Doctor output
[√] Flutter (Channel stable, 3.27.4, on Microsoft Windows [Version 10.0.19043.985], locale sl-SI)
    • Flutter version 3.27.4 on channel stable at C:\Users\alan.jereb\fvm\versions\3.27.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision d8a9f9a52e (5 months ago), 2025-01-31 16:07:18 -0500
    • Engine revision 82bd5b7209
    • Dart version 3.6.2
    • DevTools version 2.40.3

[√] Windows Version (Installed version of Windows is version 10 or higher)

[√] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at C:\Users\alan.jereb\AppData\Local\Android\Sdk        
    • Platform android-35, build-tools 33.0.1
    • ANDROID_HOME = C:\Users\alan.jereb\AppData\Local\Android\Sdk        
    • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.14.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.14.36202.13
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2024.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0--11852314)

[√] VS Code, 64-bit edition (version 1.101.2)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.112.0

[√] Connected device (5 available)
    • SM A256B (mobile)            • R5CXB2LYVBZ   • android-arm64  • Android 14 (API 34)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 14 (API 34) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.19043.985]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 138.0.7204.97
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 138.0.3351.55

[√] Network resources
    • All expected network resources are available.

• No issues found!

The same behaviour occurs both on a physical device and on the emulator.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions