mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-07-29 02:40:21 +02:00
fix last slide not triggering slidechange in scroll view (closes #3715)
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user