Vertical scrolling in a list of CdkDrag Elements, each locked on x Axis

Discussão em 'Angular' iniciado por Simon, Setembro 12, 2024.

  1. Simon

    Simon Guest

    For the following HTML Snipped, using Angular CdkDrag, is there a way keep the .scrollable-container vertical scrollable, although the inner elements are draggable (and locked on the X Axis)?

    <div class="scrollable-container" cdkDropList cdkDropListLockAxis="x">
    <div *ngFor="let item of items" cdkDrag>
    {{ item }}
    </div>
    </div>

    Continue reading...

Compartilhe esta Página