mirror of
https://github.com/Radarr/Radarr
synced 2025-12-06 08:28:50 +01:00
Fixed: Restore scroll position for collections and discover on go back
This commit is contained in:
parent
29d59315b2
commit
c5fa09dd86
2 changed files with 8 additions and 0 deletions
|
|
@ -224,6 +224,7 @@ class Collection extends Component {
|
|||
view,
|
||||
onSortSelect,
|
||||
onFilterSelect,
|
||||
initialScrollTop,
|
||||
onScroll,
|
||||
isRefreshingCollections,
|
||||
isSaving,
|
||||
|
|
@ -306,6 +307,7 @@ class Collection extends Component {
|
|||
ref={this.scrollerRef}
|
||||
className={styles.contentBody}
|
||||
innerClassName={styles[`${view}InnerContentBody`]}
|
||||
onScroll={onScroll}
|
||||
>
|
||||
{
|
||||
isFetching && !isPopulated &&
|
||||
|
|
@ -334,6 +336,7 @@ class Collection extends Component {
|
|||
onSelectedChange={this.onSelectedChange}
|
||||
onSelectAllChange={this.onSelectAllChange}
|
||||
selectedState={selectedState}
|
||||
scrollTop={initialScrollTop}
|
||||
{...otherProps}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -374,6 +377,7 @@ class Collection extends Component {
|
|||
}
|
||||
|
||||
Collection.propTypes = {
|
||||
initialScrollTop: PropTypes.number,
|
||||
isFetching: PropTypes.bool.isRequired,
|
||||
isPopulated: PropTypes.bool.isRequired,
|
||||
isSaving: PropTypes.bool.isRequired,
|
||||
|
|
|
|||
|
|
@ -259,6 +259,7 @@ class DiscoverMovie extends Component {
|
|||
onSortSelect,
|
||||
onFilterSelect,
|
||||
onViewSelect,
|
||||
initialScrollTop,
|
||||
onScroll,
|
||||
onAddMoviesPress,
|
||||
isSyncingLists,
|
||||
|
|
@ -369,6 +370,7 @@ class DiscoverMovie extends Component {
|
|||
ref={this.scrollerRef}
|
||||
className={styles.contentBody}
|
||||
innerClassName={styles[`${view}InnerContentBody`]}
|
||||
onScroll={onScroll}
|
||||
>
|
||||
{
|
||||
isFetching && !isPopulated &&
|
||||
|
|
@ -397,6 +399,7 @@ class DiscoverMovie extends Component {
|
|||
onSelectedChange={this.onSelectedChange}
|
||||
onSelectAllChange={this.onSelectAllChange}
|
||||
selectedState={selectedState}
|
||||
scrollTop={initialScrollTop}
|
||||
{...otherProps}
|
||||
/>
|
||||
</div>
|
||||
|
|
@ -441,6 +444,7 @@ class DiscoverMovie extends Component {
|
|||
}
|
||||
|
||||
DiscoverMovie.propTypes = {
|
||||
initialScrollTop: PropTypes.number,
|
||||
isFetching: PropTypes.bool.isRequired,
|
||||
isPopulated: PropTypes.bool.isRequired,
|
||||
error: PropTypes.object,
|
||||
|
|
|
|||
Loading…
Reference in a new issue