Scrolling Enhancements (#2417)
This commit is contained in:
parent
8875bc3585
commit
f4e8daf983
15 changed files with 51 additions and 71 deletions
|
|
@ -18,7 +18,6 @@ import {BulkSelectionService} from "../../../cards/bulk-selection.service";
|
|||
import {SeriesCardComponent} from "../../../cards/series-card/series-card.component";
|
||||
import {FormsModule} from "@angular/forms";
|
||||
import {takeUntilDestroyed} from "@angular/core/rxjs-interop";
|
||||
import {NgxVirtualScrollModule} from "@lithiumjs/ngx-virtual-scroll";
|
||||
|
||||
export interface IndexUpdateEvent {
|
||||
fromPosition: number;
|
||||
|
|
@ -39,8 +38,7 @@ export interface ItemRemoveEvent {
|
|||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
standalone: true,
|
||||
imports: [NgIf, VirtualScrollerModule, NgFor, NgTemplateOutlet, CdkDropList, CdkDrag,
|
||||
CdkDragHandle, TranslocoDirective, NgClass, SeriesCardComponent, FormsModule,
|
||||
NgxVirtualScrollModule, NgxVirtualScrollModule]
|
||||
CdkDragHandle, TranslocoDirective, NgClass, SeriesCardComponent, FormsModule]
|
||||
})
|
||||
export class DraggableOrderedListComponent {
|
||||
|
||||
|
|
|
|||
|
|
@ -115,7 +115,6 @@ export class ReadingListsComponent implements OnInit {
|
|||
this.loadingLists = false;
|
||||
this.actions = {};
|
||||
this.lists.forEach(l => this.actions[l.id] = this.getActions(l));
|
||||
window.scrollTo(0, 0);
|
||||
this.cdRef.markForCheck();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue