Baseflow / Baseflow/PhotoView

PhotoView in ViewPager "jumping" issue

Ouverte
#421 2 commentaires 13 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
18.8k
Forks
3.9k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par reproduire l’interaction signalée avec PhotoView dans Android ViewPager, en utilisant le GIF lié comme référence du comportement. Examinez les chemins de gestion des événements tactiles de PhotoView et ViewPager, puis vérifiez que la navigation depuis un bord zoomé ne provoque plus de saut de la page suivante.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
android, java
Domaine
mobile-dev
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.