Skip to content
Browse files

Scrollbar: only TextAreas support per-pixel scrolling

  • Loading branch information...
1 parent dd349e0 commit 6b1afd647080016bbccffb336b7427bfb9814dc8 @bradallred bradallred committed Jan 11, 2014
Showing with 4 additions and 1 deletion.
  1. +4 −1 gemrb/core/GUI/ScrollBar.cpp
View
5 gemrb/core/GUI/ScrollBar.cpp
@@ -129,8 +129,11 @@ void ScrollBar::SetPosForY(short y)
TextArea* t = (TextArea*) ta;
unsigned int taY = y * (t->GetRowHeight() / stepPx);
t->ScrollToY(taY, this);
+ SliderYPos = y;
+ } else {
+ // other controls don't support per-pixel scrolling
+ SliderYPos = Pos * stepPx;
}
- SliderYPos = y;
} else {
// top is our default position
SliderYPos = 0;

0 comments on commit 6b1afd6

Please sign in to comment.
Something went wrong with that request. Please try again.