mapbox-maps-flutter icon indicating copy to clipboard operation
mapbox-maps-flutter copied to clipboard

Scrollend

Open sKY02644 opened this issue 2 years ago • 2 comments

How do i detect when scroll has ended i am using the onScrollListener and i do not know how to determine when the scroll has ended.

kindly assist

sKY02644 avatar Jun 03 '23 15:06 sKY02644

any update?

favazHF avatar Jun 22 '23 02:06 favazHF

 _onScrollListener(mapbox.MapContentGestureContext coordinates) async {
    _scrollEndTimer?.cancel();
    _scrollEndTimer = Timer(Duration(milliseconds: 500), () async {
      // PERFORM SOME ACTION HERE
    });
  }

Went with this approach dont know if there is a better one if there is someone kindly let me know

sKY02644 avatar Aug 22 '24 15:08 sKY02644

Hi @sKY02644, I believe that MapContentGestureContext has gestureState which may help with your use case. Please try our latest release and let us know if you still encounter any problems—you’re welcome to reopen the issue if needed. Thank you!

maios avatar Jul 23 '25 13:07 maios