UX fix when clicking near the right or bottom edge of the canvas