stretch_canvas mode and improved touch handling