Browse Source

fix scroll view activation in tests

Hakim El Hattab 1 năm trước cách đây
mục cha
commit
942be4ee42
5 tập tin đã thay đổi với 1 bổ sung1 xóa
  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/reveal.js

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.esm.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.esm.js.map


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
dist/reveal.js.map


+ 1 - 1
js/reveal.js

@@ -1021,7 +1021,7 @@ export default function( revealElement, options ) {
 				// width configured. Ignore if we're configured to always be in
 				// scroll mode.
 				if( typeof config.scrollActivationWidth === 'number' && config.view !== 'scroll' ) {
-					if( size.presentationWidth <= config.scrollActivationWidth ) {
+					if( size.presentationWidth > 0 && size.presentationWidth <= config.scrollActivationWidth ) {
 						if( !scrollView.isActive() ) scrollView.activate();
 					}
 					else {

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác