fix pointer positioning when sliding vertically