ソースを参照

dont prevent swipe navigation on video backgrounds #3584

Hakim El Hattab 1 年間 前
コミット
6ef138b61f
5 ファイル変更1 行追加1 行削除
  1. 0 0
      dist/reveal.esm.js
  2. 0 0
      dist/reveal.esm.js.map
  3. 0 0
      dist/reveal.js
  4. 0 0
      dist/reveal.js.map
  5. 1 1
      js/controllers/touch.js

ファイルの差分が大きいため隠しています
+ 0 - 0
dist/reveal.esm.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/reveal.esm.js.map


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/reveal.js


ファイルの差分が大きいため隠しています
+ 0 - 0
dist/reveal.js.map


+ 1 - 1
js/controllers/touch.js

@@ -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;

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません