aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2020-06-09 10:28:01 +0200
committerHakim El Hattab <hakim.elhattab@gmail.com>2020-06-09 10:28:01 +0200
commitaa6677911ca0a417aa445149349f8ffbf2ca5c2e (patch)
treee1347dd6acfc74b1c1c74c6c4c3c91b0172f3b41 /js/reveal.js
parentf231c53b9cc9062b51b8a9a3b4a6a9c19cc25b0b (diff)
downloadfosdem-2021-minimalism-presentation-aa6677911ca0a417aa445149349f8ffbf2ca5c2e.tar
fosdem-2021-minimalism-presentation-aa6677911ca0a417aa445149349f8ffbf2ca5c2e.tar.gz
fit-text helper now triggers lazyily when slide enters view distance
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js11
1 files changed, 0 insertions, 11 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 87635e4..4657707 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -25,8 +25,6 @@ import {
POST_MESSAGE_METHOD_BLACKLIST
} from './utils/constants.js'
-import fitty from 'fitty';
-
// The reveal.js version
export const VERSION = '4.0.2';
@@ -283,15 +281,6 @@ export default function( revealElement, options ) {
dom.statusElement = createStatusElement();
dom.wrapper.setAttribute( 'role', 'application' );
-
- // The r-fit-text helper resizes text to be as large as
- // possible within its given container
- fitty( '.r-fit-text', {
- minSize: 24,
- maxSize: config.height * 0.8,
- observeMutations: false,
- observeWindow: false
- } );
}
/**