Fixed the isCursorOver function

- getCursorPosition was returning relative position