I am trying to implement a functionality which allows the user to remove messages by swiping them. The page with the messages is an external page, which means it is opened in a browser:
window.open(url, '_blank', 'location=no');
The swipe function does not work. It DOES work in desktop browsers, in mobile browsers, but not when I open a browser from within the app.
Here are my functions. I'm assigning them to multiple divs by class:
$('.message').bind('swipeleft',function(event){
swipeleftHandler(this);
});
$('.message').bind('swiperight',function(event){
swiperightHandler(this);
});
And this is my viewport:
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
I'm not sure what do to right now. I've tried multiple plugins(Hammer.js, touchSwipe.js, etc). They all work everywhere except in-app.
Anyone has an idea what could be wrong?