Skip to content

Commit 5d5f7d5

Browse files
committed
scroll mode: fix expand button hidden on last page
1 parent 025fb64 commit 5d5f7d5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

webpanel/webpanel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,8 +447,8 @@ void WebPanel::update(UserInterfaceComponent component,
447447
scrollState_ = candidate_window::scroll_state_t::scrolling;
448448
return expand();
449449
}
450-
// Disable scroll mode if all candidates are shown.
451-
if (pageableList != nullptr && pageableList->hasNext()) {
450+
// Disable scroll mode if all candidates are on the same page.
451+
if (pageableList != nullptr && (hasPrev || hasNext)) {
452452
scrollState_ = candidate_window::scroll_state_t::ready;
453453
} else {
454454
pageable = false;

0 commit comments

Comments
 (0)