Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Tapping on Samsung phones act as panning. #454

Closed
ZahraVe opened this issue Aug 3, 2021 · 2 comments
Closed

[BUG] Tapping on Samsung phones act as panning. #454

ZahraVe opened this issue Aug 3, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ZahraVe
Copy link

ZahraVe commented Aug 3, 2021

Describe the bug

Having issue with single tap and also zoom in zoom out with double tap

Snippet

PhotoViewGallery.builder(
                  itemCount: widget.currentPath.length,
                  builder: (BuildContext context, int index) {
                    return PhotoViewGalleryPageOptions(
                      imageProvider: AssetImage(widget.currentPath[index].path),
                      initialScale: PhotoViewComputedScale.covered,
                      minScale: PhotoViewComputedScale.contained,
                      maxScale: PhotoViewComputedScale.covered * 3,
                    );
                  },
                  enableRotation: true,
                  scrollPhysics: const BouncingScrollPhysics(),
                  pageController: _pageController,
                  loadingBuilder:
                      (BuildContext context, ImageChunkEvent event) {
                    return Center(child: CircularProgressIndicator());
                  },
                  onPageChanged: (int index) {
                    setState(() {
                      _currentIndex = index;
                    });
                  },
                  // backgroundDecoration:
                  //     BoxDecoration(color: kScreenBackgroundColor),
                  // scrollDirection: Axis.vertical,
                ),

Which versions of Flutter/Photo View, and which browser / OS are affected by this issue? Did this work in previous versions of Photo View?

photo_view: ^0.12.0

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.3, on macOS 11.2.3 20D91 darwin-arm, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS
[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 4.1)
[✓] Connected device (1 available)

@ZahraVe ZahraVe added the bug Something isn't working label Aug 3, 2021
@sergiyvergun
Copy link

sergiyvergun commented Oct 4, 2021

Have the same issue while using the gallery only on Samsung S10, it works well on Xiaomi and iPhone.

Touch is recognized as pan.

@clragon
Copy link

clragon commented Feb 15, 2022

Duplicate of #216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants