Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While using smoothScrollToPosition() the app isn't responding #205

Open
sbmvirdi opened this issue Apr 26, 2021 · 3 comments
Open

While using smoothScrollToPosition() the app isn't responding #205

sbmvirdi opened this issue Apr 26, 2021 · 3 comments

Comments

@sbmvirdi
Copy link

I have integrated the discrete scroll view with maps and in onMapMarkerSelected I am trying to scroll the discrete scroll view to the marker position but the app is not responding. have tried replacing discrete scroll view with recycler view working fine.

currentLocationSelected.observe(this,selectedLocation->{
            Log.e(TAG, "onCreate: "+selectedLocation.getLocationName());
            int position = infiniteAdapter.getRealCurrentPosition();
            mainBinding.locationScrollView.smoothScrollToPosition(position);
        });

this observer gives the location model class object different details like name of the location, lat, etc.

@sbmvirdi
Copy link
Author

this issue is only happening when using an infinite adapter.

@einschneidend
Copy link

try to test it on the sample app to see if its a real bug

@asthagarg2428
Copy link

try to test it on the sample app to see if its a real bug

smoothScrollToPosition is really slow. The same slowness can be seen in the DiscreteScrollView sample App.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants