DiscreteScrollView icon indicating copy to clipboard operation
DiscreteScrollView copied to clipboard

While using smoothScrollToPosition() the app isn't responding

Open sbmvirdi opened this issue 3 years ago • 3 comments

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 avatar Apr 26 '21 17:04 sbmvirdi

this issue is only happening when using an infinite adapter.

sbmvirdi avatar Apr 26 '21 18:04 sbmvirdi

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

einschneidend avatar Jan 27 '22 01:01 einschneidend

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.

asthagarg2428 avatar Nov 10 '22 12:11 asthagarg2428