fix resize offset on right side
add scroll to pointer function