Fixed bug where clicking the cursor still affected buttons when IgnoreCursorEvents was true