Thank you! I'm assuming you played on Firefox then (on Chrome you can't draw outside). Drawing outside the viewport is intentional, to give the player some leniency, and make it possible to loop enemies even when they're close to the edge.
Then yeah it's fine to draw around the screen, I think it's much slower to do so, because you end up needing to draw really big loops. But I also should've definitely added more attacks that extend to the edge as well