Skip to content

Commit afdb485

Browse files
committed
skip Appear in overview mode
1 parent 012fcf6 commit afdb485

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/deck.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)