|
|
|
@ -770,7 +770,7 @@ public class FormArea extends JComponent implements ScrollRulerComponent {
|
|
|
|
|
int scrollMax = orientation == 1 ? verticalMax : horicalMax; |
|
|
|
|
//防止滚动条到达低端还可以继续点击移动(滚动条最大范围不变时,newValue要在范围之内)
|
|
|
|
|
if (oldmax == scrollMax + visi && newValue > scrollMax) { |
|
|
|
|
return new Point(oldValue, oldmax); |
|
|
|
|
return new Point(scrollMax, oldmax); |
|
|
|
|
} |
|
|
|
|
return new Point(newValue, max); |
|
|
|
|
} |
|
|
|
|