Skip to content

Commit

Permalink
dont prevent swipe navigation on video backgrounds #3584
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Mar 7, 2024
1 parent 63e0a37 commit 6ef138b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/controllers/touch.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export default class Touch {
isSwipePrevented( target ) {

// Prevent accidental swipes when scrubbing timelines
if( matches( target, 'video, audio' ) ) return true;
if( matches( target, 'video[controls], audio[controls]' ) ) return true;

while( target && typeof target.hasAttribute === 'function' ) {
if( target.hasAttribute( 'data-prevent-swipe' ) ) return true;
Expand Down

0 comments on commit 6ef138b

Please sign in to comment.