Prechádzať zdrojové kódy

dont prevent swipe navigation on video backgrounds #3584

Hakim El Hattab 1 rok pred
rodič
commit
6ef138b61f

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/reveal.esm.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/reveal.esm.js.map


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/reveal.js


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 0 - 0
dist/reveal.js.map


+ 1 - 1
js/controllers/touch.js

@@ -84,7 +84,7 @@ export default class Touch {
 	isSwipePrevented( target ) {
 	isSwipePrevented( target ) {
 
 
 		// Prevent accidental swipes when scrubbing timelines
 		// 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' ) {
 		while( target && typeof target.hasAttribute === 'function' ) {
 			if( target.hasAttribute( 'data-prevent-swipe' ) ) return true;
 			if( target.hasAttribute( 'data-prevent-swipe' ) ) return true;

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov