Closed Bug 1229595 Opened 9 years ago Closed 9 years ago

Find in Page: Animate between results

Categories

(Firefox for iOS :: Browser, defect)

All
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: bnicholson, Assigned: bmunar, Mentored)

References

Details

(Whiteboard: [parity=safari][parity=chrome][lang=js][good first bug])

Attachments

(1 file)

Chrome and Safari both animate to Previous/Next results; the current implementation just jumps between them. We can add this polish with some JS interval animation.
Would be a good first bug for anyone familiar with JS. Currently, we scroll to the result here: https://github.com/mozilla/firefox-ios/blob/47d2a6432ba96df91a736811a76c6e76b06f93d7/Client/Assets/FindInPage.js#L165. We can add a scroll animation by finding the difference between the current scroll position and that position, interpolating positions between them, and using an interval to scroll to each. As a bonus, we could use an ease out curve to make the animation smoother.
Mentor: bnicholson
Whiteboard: [parity=safari][parity=chrome][lang=js][good first bug]
Assignee: nobody → bmunar
Attachment #8707183 - Flags: ui-review?(randersen)
Attachment #8707183 - Flags: review?(bnicholson)
Attachment #8707183 - Flags: ui-review?(randersen) → ui-review+
Comment on attachment 8707183 [details] [review] Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1453 Left a few more comments in the PR; looks good with those changes.
Attachment #8707183 - Attachment description: PR - i autoformatted it on Sublime, not sure how you want it to be formatted → Link to Github pull-request: https://github.com/mozilla/firefox-ios/pull/1453
Attachment #8707183 - Flags: review?(bnicholson) → review+
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Depends on: 1242657
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: