[Koha-bugs] [Bug 30136] Add back to top button when scrolling

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 18 21:56:12 CET 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30136

--- Comment #1 from Fridolin Somers <fridolin.somers at biblibre.com> ---
Created attachment 130896
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=130896&action=edit
Bug 30136: Add back to top button to OPAC

Like in many websites, when scrolling down the page make a button appear to go
back to top.
This can be very useful specially in search results page.

This patch adds to OPAC using Javascript a button with id "backtotop".
Button appears when 300 pixels from top are hidden.
This value may be adapted.

Test plan
1) Go to OPAC
2) Perform a search with many results
3) Scroll down
=> Back to top button appears
4) Manually scroll back to top
=> Button disappears
5) Scroll down and click on Back to top button
=> You get to top

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list