Added Auto scroll user back to the top when page navigation is clicked (#1270)

This commit is contained in:
julien0221 2021-04-09 06:27:48 +01:00 committed by GitHub
parent 25311247ed
commit d042ec42ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
* Added scene queue.
### 🎨 Improvements
* Scroll to top when changing page number.
* Add URL filter criteria for scenes, galleries, movies, performers and studios.
* Add HTTP endpoint for health checking at `/healthz`.
* Support `today` and `yesterday` for `parseDate` in scrapers.

View file

@ -534,6 +534,7 @@ const useList = <QueryResult extends IQueryResult, QueryData extends IDataItem>(
const newFilter = _.cloneDeep(filter);
newFilter.currentPage = page;
updateQueryParams(newFilter);
window.scrollTo(0, 0);
};
const renderFilter = !options.filterHook