Results 1 to 2 of 2

Thread: How to make elem.addEventListener("touchstart",... work with Sencha Touch?

  1. #1
    Sencha User ilija139's Avatar
    Join Date
    Aug 2011
    Location
    Macedonia
    Posts
    36

    Default How to make elem.addEventListener("touchstart",... work with Sencha Touch?

    I know how to add events with the Sencha Touch framework but I need to add it directly like this

    Code:
    document.getElementById("main").addEventListener("touchstart", function(){console.log('hi'););
    Can anyone help me modify the Sencha Touch framework in order to be able to catch that event? I'm guessing the framework somewhere is catching the event and is firing preventDefault so that's why the event isn't fired.
    Thanks

  2. #2
    Sencha User ilija139's Avatar
    Join Date
    Aug 2011
    Location
    Macedonia
    Posts
    36

    Default

    Actually it works, it just didn't output to the iWebInspector console for some reason. Never mind.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •