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.
This is described in the help.
construct.net/en/make-games/manuals/construct-3/plugin-reference/drawing-canvas
Develop games in your browser. Powerful, performant & highly capable.
Set fixed resolution mode for drawing canvas.