Closed Bug 989361 Opened 7 years ago Closed 7 years ago
[Camera] [Madai] [Preview] Conflict between photo panning and swipe to next/previous picture gestures
When I zoom in an image and swipe my fingers to pan the gesture is interpreted as next/previous image gesture. See attached video.
Youngjun - please assign to hyuna or anyone else you can take this up from your team
Severity: normal → blocker
Dear Hyuna, Please check it.
Assignee: nobody → hyuna.cho82
Related to 987569. I'll try to fix this as part of that bug.
Wow. That's pretty bad, isn't it. An earlier version was velocity-sensitive, only switching left or right if the swipe was fast enough. Somewhere in the translation of the preview code we lost the velocity test, so we're switching images on any left or right pan. I think this is pretty easy to fix, and instead of relying on velocity, I think we can do better and only switch images if the image is already panned all the way to the edge, which is how we do it in gallery.
Wilson, This bug changes the way we decide when to switch between images in preview mode. It relies on the return value of MediaFrame.prototype.pan() which tells how many pixels beyond the edge we are. It also cleans up event names a bit and gets an event out of lib/panzoom.js
Attachment #8402998 - Flags: review?(wilsonpage)
Comment on attachment 8402998 [details] [review] link to pull request Looks like a good patch, lots of simplification :) I'm r-'ing because the patch breaks existing unit-tests and has not not added any additional unit-tests to prove the bug has been fixed.
Attachment #8402998 - Flags: review?(wilsonpage) → review-
Comment on attachment 8402998 [details] [review] link to pull request Hi David, Can you rebase your patch? The camera app crashes each time I open it from the homescreen. I had the same issue with Wilson's patch but it was fixed once it was rebased. Thanks!
7 years ago
Amy, This patch is actually superseded by the patch in 987569, so I'm just going to clear the review request here instead of rebasing this.
This is fixed by the patch that just landed in bug 987569. This is a 1.4+ bug, so that patch in the other bug will need to be uplifted.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
New test case needs to be added. There is no existing test case.
QA Whiteboard: [QAnalyst-Triage?]
Test case has been added in moztrap: https://moztrap.mozilla.org/manage/case/14350/
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
You need to log in before you can comment on or make changes to this bug.