4 Replies Latest reply on Mar 3, 2015 2:41 AM by Mechan V.01

    Using Modernizr in Edge Animate

    Mechan V.01

      Hello everyone,
      I'm trying to use modernizr in edge animate to check for touch capabilities but i can't get it work.
      I keep getting this error > Javascript error in event handler! Event Type = element.
      This is my code so far:


      in creationComplete


          load: ["libs/1.1.0/js/min/EdgeCommons.js", "libs/1.1.0/css/style.css", "libs/js/modernizr.js"]



      in compositionReady

      sym.inTouchMode = function(){

        if (Modernizr.touch){

          console.log("Touch Me!");



          console.log("Can't Touch This!");





      Any help would be appreciated. Thanks!