mobile bugfixes

This commit is contained in:
Bala Clark 2013-08-17 22:14:37 +02:00
parent a2a5e72915
commit ea42cb3ddc
4 changed files with 10 additions and 4 deletions

View file

@ -562,9 +562,6 @@ var ComicBook = (function ($) {
if (getHash() !== pointer) {
setHash(pointer + 1);
}
// make sure the top of the page is in view
window.scroll(0, scrollY);
};
/**
@ -588,6 +585,9 @@ var ComicBook = (function ($) {
self.drawPage();
} catch (e) {}
}
// make sure the top of the page is in view
window.scroll(0, 0);
};
/**
@ -611,8 +611,10 @@ var ComicBook = (function ($) {
pointer -= (options.displayMode === 'single' || is_double_page_spread) ? 1 : 2;
self.drawPage();
}
};
// make sure the top of the page is in view
window.scroll(0, 0);
};
ComicBook.prototype.brightness = function () {
self.enhance.brightness({ brightness: $(this).val() });