Skip to content

Commit

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

0 comments on commit 9d2c715

Please sign in to comment.