hochschule-darmstadt / openartbrowser

Exploring the world of arts using open data
http://openartbrowser.org/
MIT License
40 stars 10 forks source link

Fetching list paginator skips page on large screens #574

Open EeveesEyes opened 3 years ago

EeveesEyes commented 3 years ago

Describe the bug When more than one page anchor is visible in the viewport, the paginator always uses the highest page number as current page. This is confusing when a page n is selected and after scrolling down, the paginator selects page n+1. Furthermore the page number n is no longer clickable in the paginator, because it is in the current view port.

To Reproduce Steps to reproduce the behavior:

  1. make sure to use a large screen or zoom out, so at least 6 rows are visible
  2. Go to any long fetching list page example
  3. Click on any page number smaller than maxPage
  4. See error (selected page is not current page)

Expected behavior The selected page number should stay highlighted.

Screenshots image

Desktop (please complete the following information):