Fix scrollbar direction.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1510 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Michael R Sweet 2001-07-30 18:30:39 +00:00
parent 8060de2f30
commit bed1db18b7
1 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
//
// "$Id: Fl_Scrollbar.cxx,v 1.7.2.13 2001/07/09 17:59:17 easysw Exp $"
// "$Id: Fl_Scrollbar.cxx,v 1.7.2.14 2001/07/30 18:30:39 easysw Exp $"
//
// Scroll bar widget for the Fast Light Tool Kit (FLTK).
//
@ -91,8 +91,8 @@ int Fl_Scrollbar::handle(int event) {
if (val >= 1.0) sliderx = ww-S;
else if (val <= 0.0) sliderx = 0;
else sliderx = int(val*(ww-S)+.5);
if (relx < sliderx) area = 6;
else if (relx >= sliderx+S) area = 5;
if (relx < sliderx) area = 5;
else if (relx >= sliderx+S) area = 6;
else area = 8;
}
@ -234,5 +234,5 @@ Fl_Scrollbar::Fl_Scrollbar(int X, int Y, int W, int H, const char* L)
}
//
// End of "$Id: Fl_Scrollbar.cxx,v 1.7.2.13 2001/07/09 17:59:17 easysw Exp $".
// End of "$Id: Fl_Scrollbar.cxx,v 1.7.2.14 2001/07/30 18:30:39 easysw Exp $".
//