Commit d7403d56 authored by Bilal Elmoussaoui's avatar Bilal Elmoussaoui

Merge branch 'fixes-ii' into 'bilelmoussaoui/fixes'

Fix last page button See merge request GNOME/gnome-tour!62
parents 6e056116 d36a64fa
...@@ -156,7 +156,7 @@ impl PaginatorWidget { ...@@ -156,7 +156,7 @@ impl PaginatorWidget {
// While transitioning to the last page the next button is still visible // While transitioning to the last page the next button is still visible
// pressing it would crash the app so we make it not targetable. // pressing it would crash the app so we make it not targetable.
let can_target_start = opacity_next < f64::EPSILON; 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_opacity(opacity_start);
imp.start_btn.set_visible(opacity_start > 0_f64); imp.start_btn.set_visible(opacity_start > 0_f64);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment