Kaynağa Gözat

dont prevent swipe navigation on video backgrounds #3584

Hakim El Hattab 1 yıl önce
ebeveyn
işleme
6ef138b61f

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.esm.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.esm.js.map


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
dist/reveal.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 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;

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor