Mouse fix part 2
Merge pull request #5770 from Graywolfe813/TileUI-fix

Mouse fix part 2