add sortFragmentsOnSync option, makes it possible to avoid unwanted sorting in editing environments like slides.com
This commit is contained in:
parent
ea6b7197c7
commit
7de6ccb65b
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -287,6 +287,10 @@ export default {
|
|||
// Time before the cursor is hidden (in ms)
|
||||
hideCursorTime: 5000,
|
||||
|
||||
// Should we automatmically sort and set indices for fragments
|
||||
// at each sync? (See Reveal.sync)
|
||||
sortFragmentsOnSync: true,
|
||||
|
||||
// Script dependencies to load
|
||||
dependencies: [],
|
||||
|
||||
|
|
|
@ -1471,7 +1471,9 @@ export default function( revealElement, options ) {
|
|||
// Write the current hash to the URL
|
||||
location.writeURL();
|
||||
|
||||
if( config.sortFragmentsOnSync === true ) {
|
||||
fragments.sortAll();
|
||||
}
|
||||
|
||||
controls.update();
|
||||
progress.update();
|
||||
|
|
Loading…
Reference in New Issue