mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-06 14:47:04 +02:00
fix scroll view activation in tests
This commit is contained in:
2
dist/reveal.esm.js
vendored
2
dist/reveal.esm.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.esm.js.map
vendored
2
dist/reveal.esm.js.map
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js
vendored
2
dist/reveal.js
vendored
File diff suppressed because one or more lines are too long
2
dist/reveal.js.map
vendored
2
dist/reveal.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -1021,7 +1021,7 @@ export default function( revealElement, options ) {
|
|||||||
// width configured. Ignore if we're configured to always be in
|
// width configured. Ignore if we're configured to always be in
|
||||||
// scroll mode.
|
// scroll mode.
|
||||||
if( typeof config.scrollActivationWidth === 'number' && config.view !== 'scroll' ) {
|
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();
|
if( !scrollView.isActive() ) scrollView.activate();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Reference in New Issue
Block a user