fix bug in diable elastic scrolling