Hiding Construct Game and reviving touch events

Get help using Construct 2

Post » Mon Nov 10, 2014 1:59 pm

Hi everyone,

I have an unusual case where I need to show/hide a construct canvas on a mobile device. The project uses a DragDrop behaviour which I think blocks browser touch events with a preventDefault(). Problem is once I hide the canvas (simple jquery hide) the preventDefault is still in operation and I can't scroll the elements which are shown after the game. If I remove the DragDrop behaviour, everything works as expected.

Question: How do I keep the DragDrop behaviour in my game, but revive the usual touch events once the game is paused/hidden?

Posts: 1
Reputation: 602

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest