Safety commit: cursor contraint is working, but only with mouse button pressed.