updated directive to use PageY instead of ClientY