summaryrefslogtreecommitdiff
path: root/src/gui/preview/PreviewView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/preview/PreviewView.cpp')
-rw-r--r--src/gui/preview/PreviewView.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gui/preview/PreviewView.cpp b/src/gui/preview/PreviewView.cpp
index 9d091e1..c961ffa 100644
--- a/src/gui/preview/PreviewView.cpp
+++ b/src/gui/preview/PreviewView.cpp
@@ -384,12 +384,16 @@ void PreviewView::OnMouseWheel(int x, int y, int d)
void PreviewView::OnMouseUp(int x, int y, unsigned int button)
{
- if(commentsPanel->GetScrollLimit() == 1)
- c->NextCommentPage();
- if(commentsPanel->GetScrollLimit() == -1)
+ //if mouse is on the scrollwheel or farther right, and you are at the top of bottom of a page, change pages
+ if (x > Position.X+commentsPanel->Position.X+commentsPanel->Size.X-6)
{
- if (c->PrevCommentPage())
- prevPage = true;
+ if (commentsPanel->GetScrollLimit() == 1)
+ c->NextCommentPage();
+ if (commentsPanel->GetScrollLimit() == -1)
+ {
+ if (c->PrevCommentPage())
+ prevPage = true;
+ }
}
}