Closed Bug 1892177 Opened 1 year ago Closed 15 days ago

Need zeroing overscroll vector components where overscrolling should not happen on axis

Categories

(Core :: Panning and Zooming, defect, P3)

Unspecified
Android
defect

Tracking

()

RESOLVED FIXED
141 Branch
Tracking Status
firefox141 --- fixed

People

(Reporter: hiro, Assigned: dlrobertson, Mentored)

References

(Blocks 1 open bug)

Details

(Keywords: good-first-bug, Whiteboard: [lang=C++] )

Attachments

(2 files)

Before sending overscroll offsets to GeckoView, we need to something similar to what we do on desktops.

For some context, this was split out from bug 1892102, for the "overscrolling horizontally" part. Steps to reproduce can be found there.

See Also: → 1892102
See Also: → 1894112
Blocks: 1892102
Mentor: drobertson
Keywords: good-first-bug
Whiteboard: [lang=C++]

I think this would be a good first issue for someone looking to get started contributing to Gecko. If someone is looking to pick this up, please leave a comment, and we can provide some good next steps.

Hi! I'm looking to start contributing, particularly with graphics. I'd like to give this bug a shot :)

That's great to hear Adam!

The first step should be getting a locally built firefox that you can run an test.

If you have not worked on a patch for firefox before, you might check out the firefox contributors quickref here.

Note that if bootstrap is run, make sure to avoid selecting an option for a "artifact" build.

Once you have a locally built firefox that can be run with ./mach run, reach out again and I can provide next steps.

Feel free to comment here or join mozilla matrix to reach out with quesitons. If you join the matrix instance panning and zooming tend to take place in the APZ channel

Assignee: nobody → motaouak10
Status: NEW → ASSIGNED

Just submitted a patch for the bug. I am using the android emulator to test the changes and here are the steps I followed:

  • Go to some webpage, I used wikipedia.
  • Scroll up and down by clicking on the screen and dragging up and down, simulating touchscreen. Scrolling past the top of a webpage only produced the animation on the screen that indicates that you've reached the limit of the webpage (that lightly shaded half circle that appears and disappears).
  • I tried dragging left and right, but there was no stretching, no animation indicating I had reached the limit of a webpage, just unable to drag past the bounds.
  • Following the code I wrote, I rebuilt and tested it and found that I could stretch the webpage vertically up and down. However, the webpage would not go back to its original position, it just stayed stretched. I don't know if that's the emulator that can't exactly translate mouse input to the touchscreen input, but that's what I observed.

Dan, are these patches ready for your review? Just checking on these as we wrap up the half?

Flags: needinfo?(drobertson)

This work is being tackled by a volunteer contributor. It might make sense to move this to the next half.

Flags: needinfo?(drobertson)

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: motaouak10 → nobody
Status: ASSIGNED → NEW
Assignee: nobody → motaouak10
Status: NEW → ASSIGNED

I fixed my emulator issue, reinstalling a fair amount of things made things go away.

(In reply to Adam Motaouakkil from comment #11)

I fixed my emulator issue, reinstalling a fair amount of things made things go away.

Meaning I am ready to get back on this :)

This good-first-bug hasn't had any activity for 2 months, it is automatically unassigned.
For more information, please visit BugBot documentation.

Assignee: motaouak10 → nobody
Status: ASSIGNED → NEW
Assignee: nobody → drobertson
Attachment #9428198 - Attachment description: Bug 1892177 - Enable stretching of a webpage when scrolling up or down. r=dlrobertson → Bug 1892177 - Reset overscroll offset in directions where no scrolling should occur. r=hiro,botond
Status: NEW → ASSIGNED
Pushed by drobertson@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/77024a9cb31b https://hg.mozilla.org/integration/autoland/rev/a6da45c15026 Reset overscroll offset in directions where no scrolling should occur. r=botond,hiro
Status: ASSIGNED → RESOLVED
Closed: 15 days ago
Resolution: --- → FIXED
Target Milestone: --- → 141 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: