Detect screen moving with JS after user has swiped it and ended the touch

I have a scrollable html element, which is wider than screen. And there is mini scroll map to show scroll position.

On touch devices, when user makes a swipe move and then ends the touch, element continues scrolling for some time. How can I detect this scrolling with javascript to renew mini-scroll map?