Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Event fires multiple times in web view -- still in 1.2

Still broken in v1.2

Added an event listener to a web view

webview.addEventListener('swipe', function(e) {..code..} );

It works but fires multiple times for each swipe in the simulator.

— asked April 6th 2010 by Eldon Benz
  • event
  • multiple
  • swipe
  • webview
0 Comments

3 Answers

  • how do you "swipe" in the simulator?

    — answered April 6th 2010 by Raul Riera
    permalink
    0 Comments
  • Click and drag mouse left or right.

    — answered April 6th 2010 by Eldon Benz
    permalink
    0 Comments
  • Are you able to click in the web view after adding events? I can't get this working.

    What I want to do is have the web view be 50 pixels tall.

    Then when you click anywhere in the web view, it opens to the full screen.

    The problem is when I add any kind of event listener at all, it doesn't let me click links in the web view any more!

    webview.addEventListener('touchstart', function(e) { ... code ... } );
    

    After doing this, the web view no longer lets me click links or even shows active highlighting. The event is seemingly not propagating.

    — answered April 7th 2010 by Jonah Dempcy
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.