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

@ -2,6 +2,7 @@
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<title>Basic</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="comicbook/js/comicbook.min.js"></script>

View file

@ -2,6 +2,8 @@
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<title>Dev</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>

View file

@ -8,6 +8,7 @@
<html>
<head>
<meta charset="utf8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
<title>App</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="bitjs/io.js"></script>

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() });