fixed cursor rendering and pointer events