I tried opening it. No new ideas. Maybe rotate the layer instead of the layout? I ran out of time to fiddle with it. JavaScript won’t provide anything more than what you can do with events.
I won’t be able to debug it. If the sprite isn’t being drawn where you touch then construct isn’t doing what it should or we just aren’t understanding what is happening. I gave the rotation formula to give a way to correct it. With 90 degree turns the coordinates come out to either
-touch.y+2*scrollx, touch.x
Touch.y, -touch.x+2*scrolly
If it’s not drawing the whole area then check the drawing canvas size.
If none of that works or doesn’t makes sense then I’m explaining it poorly or missing something.
Probably best to wait for someone else’s answer at that point.