projects
/
dorian
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New version. Have and overlap between current/next page.
[dorian]
/
bookview.cpp
diff --git
a/bookview.cpp
b/bookview.cpp
index
30a1499
..
7e6cfd5
100644
(file)
--- a/
bookview.cpp
+++ b/
bookview.cpp
@@
-447,7
+447,7
@@
void BookView::goPreviousPage()
{
QWebFrame *frame = page()->mainFrame();
int pos = frame->scrollPosition().y();
{
QWebFrame *frame = page()->mainFrame();
int pos = frame->scrollPosition().y();
- frame->scroll(0, -height());
+ frame->scroll(0, -(height() - 19));
if (pos == frame->scrollPosition().y()) {
if (contentIndex > 0) {
Book::Bookmark bookmark(contentIndex - 1, 1.0);
if (pos == frame->scrollPosition().y()) {
if (contentIndex > 0) {
Book::Bookmark bookmark(contentIndex - 1, 1.0);
@@
-464,7
+464,7
@@
void BookView::goNextPage()
TRACE;
QWebFrame *frame = page()->mainFrame();
int pos = frame->scrollPosition().y();
TRACE;
QWebFrame *frame = page()->mainFrame();
int pos = frame->scrollPosition().y();
- frame->scroll(0, height());
+ frame->scroll(0, height() - 19);
if (pos == frame->scrollPosition().y()) {
goNext();
} else {
if (pos == frame->scrollPosition().y()) {
goNext();
} else {