Skip to content

The js error when swipe gallery images on the product page (touch events) #34282

Closed
@glevhen

Description

@glevhen

Magento 2.4.3
Open product page in chrome browser and swipe product images in the gallery
make sure you swiping via touch event (you can use chrome mobile device emulation or real devices for this)
Swiping product images cause js errors
fotorama.js:1222 Unable to preventDefault inside passive event listener invocation.
image

the issue caused by this commit 2f5b57a#diff-c4a96bcd0b56dc98fdc1c5af6c8a86d6560587bbc80caabe9b3ccabd047675d0

because fotorama call e.preventDefault
https://github.com/magento/magento2/blob/2.4-develop/lib/web/fotorama/fotorama.js#L1222
inside of passive event listener
https://github.com/magento/magento2/blob/2.4-develop/lib/web/fotorama/fotorama.js#L1143

Metadata

Metadata

Assignees

Labels

Area: ContentComponent: ImageIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.3Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchTriage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions