[gnome-tour/bilelmoussaoui/fixes: 1/2] Fix last page button
- From: Bilal Elmoussaoui <bilelmoussaoui src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-tour/bilelmoussaoui/fixes: 1/2] Fix last page button
- Date: Wed, 26 Jan 2022 12:46:31 +0000 (UTC)
commit d36a64faeddfef84375f476efaf8e9b73f5fb288
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Wed Jan 26 13:27:58 2022 +0100
Fix last page button
src/widgets/paginator.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/widgets/paginator.rs b/src/widgets/paginator.rs
index d2bcbfa..18405f3 100644
--- a/src/widgets/paginator.rs
+++ b/src/widgets/paginator.rs
@@ -156,7 +156,7 @@ impl PaginatorWidget {
// While transitioning to the last page the next button is still visible
// pressing it would crash the app so we make it not targetable.
let can_target_start = opacity_next < f64::EPSILON;
- let can_target_next = opacity_next > 0_f64 && position < forelast_page;
+ let can_target_next = opacity_next > 0_f64 && position <= forelast_page;
imp.start_btn.set_opacity(opacity_start);
imp.start_btn.set_visible(opacity_start > 0_f64);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]