angular / angular/components

bug(Drag and Drop): autoscroll fails in full size web view

Offen
#27,169 5 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area: cdk/scrolling P4
Vorherrschende Sprache
TypeScript
Sterne
25k
Forks
6.8k
Ø Merge
1 T. 8 Std.
Gemergte PRs (30 T.)
91

Beschreibung

### Is this a regression?

- [ ] Yes, this behavior used to work in the previous version

### The previous version in which this bug was not present was

_No response_

### Description

When a hybrid mobile app (Ionic Capacitor) is made with a long list of draggable items, the autoscroll fails to engage. Take the same codebase and run it on a mobile browser, it fails. Run it on a desktop browser and it works.
Notice on a desktop browser that autoscrolling only begins when the cursor is outside the html page. It is not possible to get outside the page on a full screen mobile web view since touching outside that area is touching off the screen.

### Reproduction

Steps to reproduce:
1. Build a simple Ionic Capacitor mobile app with a list
2. Add CDK Drag and Drop elements to the list
3. Run it on a phone or phone browser.
4. Drag an item form the top to near the bottom.

### Expected Behavior

List should autoscroll up when touching near edge of phone.

### Actual Behavior

List fails to autoscroll.

### Environment

- Angular: 15.2.8
- CDK/Material: 15.2.9
- Browser(s): Safari, Safari Mobile
- Operating System (e.g. Windows, macOS, Ubuntu): macOS 12.6.6
- Ionic: 5.4.16
- Capacitor 5.0.3

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduzieren Sie das Verhalten von Angular CDK Drag and Drop in dem beschriebenen Ionic Capacitor-Setup und auf Safari Mobile und vergleichen Sie es mit dem Verhalten in Desktop-Browsern. Untersuchen Sie das Autoscroll-Verhalten während eines Drag-Vorgangs in der Nähe des Randes des Viewports des Telefons; als abgeschlossen gilt die Untersuchung, wenn eine lange Liste automatisch scrollt, sobald das gezogene Element diesen Rand erreicht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript
Bereich
frontend, mobile-dev
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.