App icon indicating copy to clipboard operation
App copied to clipboard

[HOLD for payment 2021-09-27] Add a scroll bounce or elasticity animation when reaching the top or bottom of a page

Open isagoico opened this issue 5 years ago • 27 comments

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

  1. Open New Expensify on Android or iOS
  2. Navigate to a conversation
  3. Scroll to the top (or scroll a bit upwards and then to the bottom)

Expected Result:

There should be a bounce or elasticity animation when reaching the top or bottom

Actual Result:

No animation is shown when reaching the top or bottom of a page or conversation

Platform:

Where is this issue occurring?

  • iOS
  • Android

Version Number: 1.0.86-9

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos:

Expensify/Expensify Issue URL:

View all open jobs on GitHub


From @shawnborton https://expensify.slack.com/archives/C01GTK53T8Q/p1629717577129000

FEATURE REQUEST: This might be nit-picky but I noticed that scroll views on iOS don’t have any kind of bounce or elasticity when you reach the end. For example, the list of chats, or any view in Settings, or even when you are viewing a chat with someone. Looks like this is supported in RN via scrollview but not sure how that would work with our implementation?

isagoico avatar Aug 25 '21 02:08 isagoico

Triggered auto assignment to @strepanier03 (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 25 '21 02:08 MelvinBot

OoO, reassigning.

strepanier03 avatar Aug 27 '21 19:08 strepanier03

Triggered auto assignment to @arielgreen (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

MelvinBot avatar Aug 27 '21 19:08 MelvinBot

Triggered auto assignment to @cead22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

MelvinBot avatar Aug 27 '21 22:08 MelvinBot

Triggered auto assignment to @MitchExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

MelvinBot avatar Aug 27 '21 23:08 MelvinBot

Proposal

  1. We have to use bounces:true prop on the ScrollViews to make them bounce naturally on IOS. e.g. https://github.com/Expensify/App/blob/70f8208ea61bc74c1104a4746b97e1f2a568475c/src/pages/settings/Profile/ProfilePage.js#L207
  2. I will update every page so that it has bounces behavior.
  3. There are few places where we will jointly decide if we want the bounce for example chat list, Users list in LHN and etc. I will update those based on the team's feedback.
  4. We can also add the overScrollMode prop for Android devices so that it shows a natural glow effect when reaching the end of the list.

parasharrajat avatar Aug 28 '21 01:08 parasharrajat

Upwork Job

MitchExpensify avatar Aug 30 '21 17:08 MitchExpensify

Triggered auto assignment to @chiragsalian (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

MelvinBot avatar Aug 30 '21 17:08 MelvinBot

Yup that proposal makes sense to me. Before we begin let's confirm the spots that we want to make the scroll bouncy. @shawnborton could you let us know the places you would prefer to see this bouncy scroll animation or were you thinking of having this in every scroll in newDot?

chiragsalian avatar Aug 30 '21 22:08 chiragsalian

Yeah I think for me personally, if we want the app to feel more native, basically any view that is scrollable should have this behavior by default.

shawnborton avatar Aug 31 '21 08:08 shawnborton

Cool, @MitchExpensify can you hire rajat in upwork. @parasharrajat, feel free to create the PR.

chiragsalian avatar Aug 31 '21 16:08 chiragsalian

Hired!

MitchExpensify avatar Sep 02 '21 00:09 MitchExpensify

Any update on this issue @parasharrajat?

chiragsalian avatar Sep 02 '21 19:09 chiragsalian

I will drop the PR soon.

parasharrajat avatar Sep 02 '21 19:09 parasharrajat

@chiragsalian, @parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

MelvinBot avatar Sep 06 '21 19:09 MelvinBot

I am on vacation. back on 8.

parasharrajat avatar Sep 07 '21 13:09 parasharrajat

@MitchExpensify reassigned to you, this should remain assigned for the duration of the issue.

arielgreen avatar Sep 07 '21 18:09 arielgreen

Ah whoops, thanks for reassigning! Noted

MitchExpensify avatar Sep 08 '21 15:09 MitchExpensify

@shawnborton What color do we want for the OverScroll Effect on Android? Here is the video of what I am asking.

https://user-images.githubusercontent.com/24370807/132905427-e5c64feb-501a-4356-bcb0-8c652d83546e.mp4

parasharrajat avatar Sep 10 '21 19:09 parasharrajat

Maybe the same color we use for our icons or borders? Something that is gray and a bit more subtle, but noticeable. Thoughts on that?

shawnborton avatar Sep 10 '21 20:09 shawnborton