As mentioned in title, when I make colored rectangles using touch event as shown in added image then change screen size (or rotate screen in mobile) and touch again drawing canvas lose all rectangles created earlier.
Develop games in your browser. Powerful, performant & highly capable.
This is described in the help.
construct.net/en/make-games/manuals/construct-3/plugin-reference/drawing-canvas
Set fixed resolution mode for drawing canvas.