Way to avoid calling ref.snapToPosition. Also scrollPos is not being set correctly.
Way to avoid calling ref.snapToPosition. Also scrollPos is not being set correctly.