place the internal points property detection outside of mousemove handler
TODOed