Skip to content

Commit

Permalink
Fix broken fotorama image slider on mobile Fixes #37232
Browse files Browse the repository at this point in the history
Fixes #37232
  • Loading branch information
vseager committed Apr 10, 2023
1 parent 9649f62 commit 3598333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/fotorama/fotorama.js
Original file line number Diff line number Diff line change
Expand Up @@ -1140,7 +1140,7 @@ fotoramaVersion = '4.6.4';

function addEvent(el, e, fn, bool) {
if (!e) return;
el.addEventListener ? el.addEventListener(e, fn, !!bool) : el.attachEvent('on' + e, fn);
el.addEventListener ? el.addEventListener(e, fn, {passive: !!bool}) : el.attachEvent('on' + e, fn);
}

/**
Expand Down

0 comments on commit 3598333

Please sign in to comment.