Skip to content

Commit

Permalink
[slider] Fix touchend event
Browse files Browse the repository at this point in the history
  • Loading branch information
naranjamecanica committed Feb 29, 2024
1 parent db9272e commit 458b606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion attractions/slider/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
*/
function normalizeEvent(e) {
if (e.type.includes('touch')) {
return /** @type {TouchEvent}*/ (e).touches[0];
return /** @type {TouchEvent}*/ (e).touches[0] || (e).changedTouches[0];
} else {
return /** @type {MouseEvent}*/ (e);
}
Expand Down

0 comments on commit 458b606

Please sign in to comment.