fix read issue that caused double navigations fixes #3079
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/reveal.esm.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/reveal.esm.js
									
									
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/reveal.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/reveal.js
									
									
									
									
										vendored
									
									
								
							
										
											
												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 newIndices = this.getIndicesFromHash(); | ||||
|  | ||||
| 		if( newIndices && ( newIndices.h !== currentIndices.h || newIndices.v !== currentIndices.v || newIndices.f !== undefined ) ) { | ||||
| 			this.Reveal.slide( newIndices.h, newIndices.v, newIndices.f ); | ||||
| 		if( newIndices ) { | ||||
| 			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 { | ||||
| 			this.Reveal.slide( currentIndices.h || 0, currentIndices.v || 0 ); | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user