Fix issue with relative mouse position being negative, closes #44