Skip to content

Commit

Permalink
Fix geosolutions-it#1706. Auto-exit from full-screen mode
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz committed Apr 7, 2017
1 parent b41c97a commit 20f2911
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/client/epics/fullscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ const toggleFullscreenEpic = action$ =>
Rx.Observable.fromEvent(document, getFullScreenEvent())
.filter(() => screenfull.element !== element)
.map( () => setControlProperty("fullscreen", "enabled", false) ),
Rx.Observable.of(setControlProperty("fullscreen", "enabled", action.enable))
Rx.Observable.of(setControlProperty("fullscreen", "enabled", action.enable)),
Rx.Observable.fromEvent(window, "hashchange")
.do(() => screenfull.exit())
.map( () => setControlProperty("fullscreen", "enabled", false) )
);
});
/**
Expand Down

0 comments on commit 20f2911

Please sign in to comment.