summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-10-18 20:13:04 (GMT)
committer jacob1 <jfu614@gmail.com>2013-10-18 20:13:40 (GMT)
commitba43e4d238ab60255bde40afd3eb1430fb18ea08 (patch)
tree95f721c12f11f5b3faf72ee32a5a4a0a8e2f482b /src/gui
parent02a4c17d72def847205c8c89dacabe9ecdcb0dab (diff)
downloadpowder-ba43e4d238ab60255bde40afd3eb1430fb18ea08.zip
powder-ba43e4d238ab60255bde40afd3eb1430fb18ea08.tar.gz
revert b17ef7f93880 (couldn't figure out better fix for the new PSTN bug), fix annoyance with clicking on save comments changing pages
Diffstat (limited to 'src/gui')
-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;
+ }
}
}