just mimic how scroll bar works[works only in chrome]