summaryrefslogtreecommitdiff
path: root/src/gui/interface/ScrollPanel.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-07-21 19:59:51 (GMT)
committer jacob1 <jfu614@gmail.com>2013-07-21 19:59:51 (GMT)
commita63f5b875b9d31f8932ca62537ae7b863ef7f8b8 (patch)
tree09e917a515cf0ed03a09e14f6782ad964ae3c7ad /src/gui/interface/ScrollPanel.cpp
parenta9352008cf3765070a0634cb198820ebda9427f1 (diff)
downloadpowder-a63f5b875b9d31f8932ca62537ae7b863ef7f8b8.zip
powder-a63f5b875b9d31f8932ca62537ae7b863ef7f8b8.tar.gz
when scrolling up through comments, it starts at the bottom of the page instead of the top
Diffstat (limited to 'src/gui/interface/ScrollPanel.cpp')
-rw-r--r--src/gui/interface/ScrollPanel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/interface/ScrollPanel.cpp b/src/gui/interface/ScrollPanel.cpp
index 11a4f71..f1e8094 100644
--- a/src/gui/interface/ScrollPanel.cpp
+++ b/src/gui/interface/ScrollPanel.cpp
@@ -28,6 +28,11 @@ int ScrollPanel::GetScrollLimit()
return 0;
}
+void ScrollPanel::SetScrollPosition(int position)
+{
+ offsetY = position;
+}
+
void ScrollPanel::XOnMouseWheelInside(int localx, int localy, int d)
{
if(!d)