Răsfoiți Sursa

dont prevent swipe navigation on video backgrounds #3584

Hakim El Hattab 1 an în urmă
părinte
comite
6ef138b61f
5 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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

Fișier diff suprimat deoarece este prea mare
+ 0 - 0
dist/reveal.esm.js


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
dist/reveal.esm.js.map


Fișier diff suprimat deoarece este prea mare
+ 0 - 0
dist/reveal.js


Fișier diff suprimat deoarece este prea mare
+ 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;

Unele fișiere nu au fost afișate deoarece prea multe fișiere au fost modificate în acest diff