Make so that relative mouse events work well