rounded the scroll value and the out of sync scrolling issue is now resolved