I have a construct 2 game export file, in which I append a html file on top of it. I want to disable the on touch/click event of the dynamically generated canvas of the construct 2 game because when I click on the appended html, the click also propagates to the canvas element of the game.
I have used event.stopPropagation() and event.preventDefault() functions, but to no avail.