Changed pointer events to use floating point