Need some help with ontouch/addEventListener

Get help using Construct 2

Post » Tue Jun 25, 2013 5:36 pm

I'm attempting to place a piece I built in C2 into an Adobe DPS document. The game works perfectly, the issue I am having is whenever the user touches/interacts with the game the apps navigation pops up. I was told the following by a rep at Adobe:

According to one of our developers, when you display HTML content in DPS, the viewer looks for elements with handlers such as onclick and ontouchstart or an event listener such as addEventListener. If any of these elements are present, tapping the item should not display the nav bars.

If you dynamitcally set the element.ontouchstart function after the content has loaded, the nav bars will appear when the item is tapped. To suppress the nav bars, one approach is to change the function that applies the handler functions to use addEventListener.


Anyone have quick fix in mind?
B
18
S
8
G
1
Posts: 25
Reputation: 2,674

Return to How do I....?

Who is online

Users browsing this forum: mehrshadfarahani and 5 guests