Commit 5481f4f0 authored by Oleg Roschupkin's avatar Oleg Roschupkin

Fix issue #30

parent dbcbf8a3
...@@ -113,7 +113,12 @@ ...@@ -113,7 +113,12 @@
window.addEventListener('DOMContentLoaded', function() { window.addEventListener('DOMContentLoaded', function() {
if(isFull()) enterFull(); if(isFull()) enterFull();
}, false); }, false);
window.addEventListener("popstate", function() {
var current_slide_number = slideList.indexOf(url.hash.substr(1));
if (-1 === current_slide_number) { exitFull(); }
}, false);
document.addEventListener('keydown', turnSlide, false); document.addEventListener('keydown', turnSlide, false);
document.addEventListener('keydown', enterFullKey, false); document.addEventListener('keydown', enterFullKey, false);
})(); })();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment