Forum Replies Created

Viewing 1 replies (of 1 total)
  • In case it helps, I had the same problem with i-amaze and had to edit the javascript for the theme. The file wprmenu.js (inc/responsive-menu/js/wprmenu.js in my case) has a commented out section like so:

    //Additional fixes on change device orientation
    /*
    if( $.browser.mozilla ) {
    	screen.addEventListener("orientationchange", function() {updateOrientation()}); //firefox
    } else if( window.addEventListener ) {
    	window.addEventListener('orientationchange', updateOrientation, false);
    }
    else {
    	window.attachEvent( "orientationchange" );
    }*/

    On the phone through the debugger, Chrome was not treating that as a comment. I changed it to the following:

    //Additional fixes on change device orientation
    /*
    if( if (typeof($.browser) != 'undefined') && $.browser.mozilla ) {
    	screen.addEventListener("orientationchange", function() {updateOrientation()}); //firefox
    } else if( window.addEventListener ) {
    	window.addEventListener('orientationchange', updateOrientation, false);
    }
    else {
    	window.attachEvent( "orientationchange" );
    }*/

    Which should not produce an error if not treated as a comment, but once the change was made, Chrome began treating it as a comment. Go figure… You could also simply delete the section, I suspect.

    Good luck!

Viewing 1 replies (of 1 total)