Przeglądaj źródła

fix last slide not triggering slidechange in scroll view (closes #3715)

Hakim El Hattab 8 miesięcy temu
rodzic
commit
fe4a6e82b0

Plik diff jest za duży
+ 0 - 0
dist/reveal.esm.js


Plik diff jest za duży
+ 0 - 0
dist/reveal.esm.js.map


Plik diff jest za duży
+ 0 - 0
dist/reveal.js


Plik diff jest za duży
+ 0 - 0
dist/reveal.js.map


+ 4 - 0
js/controllers/scrollview.js

@@ -449,6 +449,10 @@ export default class ScrollView {
 			rangeStart = trigger.range[1];
 		} );
 
+		// Ensure the last trigger extends to the end of the page, otherwise
+		// rounding errors can cause the last trigger to end at 0.999999...
+		this.slideTriggers[this.slideTriggers.length - 1].range[1] = 1;
+
 	}
 
 	/**

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików