woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

[Tab Bar] Make tabs navigate to top of list on second tap #11936

Open joe-keenan opened 3 months ago

joe-keenan commented 3 months ago

Describe the bug Tapping on a tab will navigate to the last scroll-position that tab displayed, but tapping it again does nothing. The expected pattern should navigate to the top of the tab’s home screen on second tap.

I’ve called out the Products tab below, but the behaviour should be applied to all tabs – Including My Store and More.

To Reproduce Steps to reproduce the behavior:

  1. Go to Products tab
  2. Scroll down
  3. Tap Products tab

Screenshots There’s not much to show for the Woo App behaviour, so I’ve recorded how the Slack App behaves instead.

https://github.com/woocommerce/woocommerce-android/assets/95003933/06131b63-c6bb-4f79-b202-0791b3c0ee4e

Expected behavior

  1. Go to Products tab
  2. Scroll down
  3. Tap Products tab
  4. Navigate to top of Products list
dangermattic commented 3 months ago

🚫 Please add a type label (e.g. type: enhancement) and a feature label (e.g. feature: stats) to this issue.