if you resize the window after the page loads, the canvas doesn't span the entire window anymore. the shift, click and drag is registered but the rectangle is being drawn outside the visible bounds of the canvas, so you can only see the parts that would fit in the original size of the window.