PhotoView in ViewPager "jumping" issue
- 主要言語
- Java
- スター
- 18.8k
- フォーク
- 3.9k
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hello, I have noticed an issue when using PhotoView with ViewPager. When zoomed in and you try to navigate to the next page, the PhotoView is first scrolled to the edge as expected, but after that the next ViewPager page just sort of jumps into view. I also recorded a gif to demonstrate this issue: https://media.giphy.com/media/xyH3Dqr5mZroI/giphy.gif
I realise, that this is also ViewPager's (VP) fault because it intercepts the DOWN event which is actually meant for the PhotoView (PV) and when PV starts passing MOVE events to the VP then VP just thinks that the person has dragged the screen really fast.
Do you think this is something PV could address? I would suggest starting to pass MOVE events to the parent only if PV is already scrolled to the edge when the DOWN event occurs - then the DOWN event that VP intercepts would actually be with the correct X and Y.
コントリビューションガイド
調査の方向性
まず、リンクされた GIF を動作のリファレンスとして使用し、Android ViewPager 内で報告された PhotoView とのインタラクションを再現します。PhotoView と ViewPager のタッチイベント処理経路を読み、そのうえで、ズームされた端から移動しても次のページがジャンプしなくなっていることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, java
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100