BufferListPanel: improve the first/last item detection logic
BufferListPanel: improve the first/last item detection logic

killruana/communi-sailfish,communi/communi-sailfish,kimmoli/communi-sailfish,communi/communi-sailfish,communi/communi-sailfish