mobile bugfixes
This commit is contained in:
parent
a2a5e72915
commit
ea42cb3ddc
4 changed files with 10 additions and 4 deletions
|
@ -2,6 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf8">
|
<meta charset="utf8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||||
<title>Basic</title>
|
<title>Basic</title>
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
||||||
<script src="comicbook/js/comicbook.min.js"></script>
|
<script src="comicbook/js/comicbook.min.js"></script>
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf8">
|
<meta charset="utf8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||||
|
|
||||||
<title>Dev</title>
|
<title>Dev</title>
|
||||||
|
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf8">
|
<meta charset="utf8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0"/>
|
||||||
<title>App</title>
|
<title>App</title>
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
|
||||||
<script src="bitjs/io.js"></script>
|
<script src="bitjs/io.js"></script>
|
||||||
|
|
|
@ -562,9 +562,6 @@ var ComicBook = (function ($) {
|
||||||
if (getHash() !== pointer) {
|
if (getHash() !== pointer) {
|
||||||
setHash(pointer + 1);
|
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();
|
self.drawPage();
|
||||||
} catch (e) {}
|
} 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;
|
pointer -= (options.displayMode === 'single' || is_double_page_spread) ? 1 : 2;
|
||||||
self.drawPage();
|
self.drawPage();
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
|
||||||
|
// make sure the top of the page is in view
|
||||||
|
window.scroll(0, 0);
|
||||||
|
};
|
||||||
|
|
||||||
ComicBook.prototype.brightness = function () {
|
ComicBook.prototype.brightness = function () {
|
||||||
self.enhance.brightness({ brightness: $(this).val() });
|
self.enhance.brightness({ brightness: $(this).val() });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue