bool handle_button = false;
bool in_overscroll = false;
bool can_overscroll = false;
+ bool maybe_overscroll = false;
BPoint last_overscroll;
int last_reported_overscroll_value;
int max_value, real_max_value;
if (buttons == B_PRIMARY_MOUSE_BUTTON)
{
+ maybe_overscroll = true;
r = ButtonRegionFor (HAIKU_SCROLL_BAR_UP_BUTTON);
if (r.Contains (pt))
BView *parent;
in_overscroll = false;
+ maybe_overscroll = false;
if (handle_button)
{
return;
}
}
- else if (can_overscroll && (buttons == B_PRIMARY_MOUSE_BUTTON))
+ else if (can_overscroll
+ && (buttons == B_PRIMARY_MOUSE_BUTTON)
+ && maybe_overscroll)
{
value = Value ();