Fixed mobile issue where use could draw shapes outside canvas window