File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class Deck extends React.Component {
9999 this . setState ( {
100100 lastSlide : slide
101101 } ) ;
102- if ( this . _checkFragments ( slide , false ) ) {
102+ if ( this . _checkFragments ( slide , false ) || this . context . overview ) {
103103 if ( slide > 0 ) {
104104 this . context . router . replaceWith ( "/" + ( slide - 1 ) + this . _getSuffix ( ) ) ;
105105 localStorage . setItem ( "spectacle-slide" ,
@@ -115,7 +115,7 @@ class Deck extends React.Component {
115115 this . setState ( {
116116 lastSlide : slide
117117 } ) ;
118- if ( this . _checkFragments ( slide , true ) ) {
118+ if ( this . _checkFragments ( slide , true ) || this . context . overview ) {
119119 if ( slide < this . props . children . length - 1 ) {
120120 this . context . router . replaceWith ( "/" + ( slide + 1 ) + this . _getSuffix ( ) ) ;
121121 localStorage . setItem ( "spectacle-slide" ,
@@ -130,7 +130,7 @@ class Deck extends React.Component {
130130 const store = this . context . flux . stores . SlideStore ;
131131 const fragments = store . getState ( ) . fragments ;
132132 // Not proud of this at all. 0.14 Parent based contexts will fix this.
133- if ( this . context . presenter || this . context . overview ) {
133+ if ( this . context . presenter ) {
134134 const main = document . querySelector ( ".spectacle-presenter-main" ) ;
135135 if ( main ) {
136136 const frags = main . querySelectorAll ( ".fragment" ) ;
You can’t perform that action at this time.
0 commit comments