Restricted mouse cursor positions from being assigned negative (off-grid) values.
Signed-off-by:Arie <arieclaassens@gmail.com>