fix read issue that caused double navigations fixes #3079
This commit is contained in:
parent
c5d549810e
commit
74c0fbb6a2
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -96,9 +96,13 @@ export default class Location {
|
||||||
const currentIndices = this.Reveal.getIndices();
|
const currentIndices = this.Reveal.getIndices();
|
||||||
const newIndices = this.getIndicesFromHash();
|
const newIndices = this.getIndicesFromHash();
|
||||||
|
|
||||||
if( newIndices && ( newIndices.h !== currentIndices.h || newIndices.v !== currentIndices.v || newIndices.f !== undefined ) ) {
|
if( newIndices ) {
|
||||||
this.Reveal.slide( newIndices.h, newIndices.v, newIndices.f );
|
if( ( newIndices.h !== currentIndices.h || newIndices.v !== currentIndices.v || newIndices.f !== undefined ) ) {
|
||||||
|
this.Reveal.slide( newIndices.h, newIndices.v, newIndices.f );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// If no new indices are available, we're trying to navigate to
|
||||||
|
// a slide hash that does not exist
|
||||||
else {
|
else {
|
||||||
this.Reveal.slide( currentIndices.h || 0, currentIndices.v || 0 );
|
this.Reveal.slide( currentIndices.h || 0, currentIndices.v || 0 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue