angular / angular/components

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

オープン
#27,169 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: cdk/scrolling P4
主要言語
TypeScript
スター
25k
フォーク
6.8k
平均マージ
1日 8時間
マージ済み PR(30日)
91

説明

### 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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

説明されている Ionic Capacitor セットアップおよび Safari Mobile で Angular CDK Drag and Drop の動作を再現し、デスクトップブラウザーでの動作と比較します。携帯電話の viewport の端付近でドラッグしている間の autoscroll の動作を調査します。ドラッグ中の要素がその端に到達したときに長いリストが autoscroll すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
frontend, mobile-dev
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。