Event listeners at multiple levels?

You must Login before you can answer or comment on any questions.

I inherited an application that uses a webview and also a variant of jquery called Mercury. There are a number of event listeners in Mercury for detecting swipes in a device. It uses A method of detecting start and stop points on the screen and determining if it's a swipe and which direction. The webview is created in the app.js and the event listeners are part of the js loaded within the webview. Problem is the swipe actions work however I want to replace the current webview with a new one on swipe OR have the page refresh with a separate URL internal to the app however if I create an independent event listener for swiping in app.js none of the other listeners work. If I try and access app.js or the webview container from the js files inside the webview it doesn't work. Is there a way to setup an independent listener in the app.js that either won't effect the other listeners in the framework or intercept the swipe and pass it thru after it does it's thing in the app.js?

Thanks.

JR

— asked 11 months ago by John Riker
0 Comments

Your Answer

Think you can help? Login to answer this question!