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

Touch Control - Thumbnails selects photo randomly when tapping. #12943

Closed
nglara opened this issue Apr 25, 2023 · 0 comments
Closed

Touch Control - Thumbnails selects photo randomly when tapping. #12943

nglara opened this issue Apr 25, 2023 · 0 comments
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@nglara
Copy link

nglara commented Apr 25, 2023

Describe the bug

As I was testing our photo gallery using a tablet (Windows Surface), I tapped a photo on the thumbnail section and noticed that it selects another photo randomly. It won't respect the position of my finger and won't select the one I just tapped.

One thing I noticed when I was troubleshooting it is the DIV that has a class of "p-galleria-thumbnail-items" has event listeners on touchstart, touchmove and touchend. The moment I removed them while I'm in the debugger, it worked.

image

Environment

  • Windows 10
  • Google Chrome
  • PrimeNG version 14

Reproducer

No response

Angular version

14.1.0

PrimeNG version

14

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

16.13.2

Browser(s)

Google Chrome

Steps to reproduce the behavior

  1. Using your tablet or laptop with touch screen, navigate to https://www.primefaces.org/primeng-v14-lts/galleria/thumbnail
  2. Tap on any photo on the thumbnail section
  3. Notice that it won't select the one you just tapped

Expected behavior

It supposed to select whichever you tapped

@nglara nglara added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 25, 2023
@cetincakiroglu cetincakiroglu self-assigned this Apr 25, 2023
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Apr 25, 2023
@cetincakiroglu cetincakiroglu added this to the 15.4.2 milestone Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants