Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Swipe event on webView

$
0
0

We have a webview where the scrolling worked fine.

But when we add this code:

web_content.addEventListener('swipe', function(e) {
        var swipe_town_name;
        swipe_town_name = central.nextSwipeTown(name, e.direction);
        // alert("swipe_town_name:" + swipe_town_name);
        Ti.App.fireEvent('openTown', {
            townName : swipe_town_name
        });
    });
The scrolling stops working. Why would an event listener affect the scrolling?

Any work around for this, as we need to swipe in new content into the webView, and have scrolling of the content?

Specs:

Studio: 3.14

SDK: 3.1.3.GA

OS: Mac OS 10.9

Mode: Classic App


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>