Fix crash when scrolling too far up
This commit is contained in:
parent
ebda305e2d
commit
d0d248e44c
1
nncmpp.c
1
nncmpp.c
|
@ -2961,6 +2961,7 @@ app_process_left_mouse_click (struct widget *w, int x, int y, int modifiers)
|
||||||
tab->item_top = (double) y / w->height
|
tab->item_top = (double) y / w->height
|
||||||
* (int) tab->item_count - visible_items / 2;
|
* (int) tab->item_count - visible_items / 2;
|
||||||
app_invalidate ();
|
app_invalidate ();
|
||||||
|
app_fix_view_range ();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WIDGET_MESSAGE:
|
case WIDGET_MESSAGE:
|
||||||
|
|
Loading…
Reference in New Issue