3 Replies Latest reply on Mar 3, 2014 3:05 AM by SimonDBench

    JS window object use


      I am debugging something


      I am trying to get output from the window object using this code on the scroll action


      var windowScroll = $(window).innerHeight();



      the thing is it returns no value unless: the stage height is less then my monitor height and overflow is set to auto or scroll


      it will not work in the scroll action unless all of these are met


      If I put the code into compready....it will work in all circumstances




      However...the value I am really after is window.pageYOffset.....which never returns any value in any circumstance.


      Is there a way to access window.pageYoffset within a scroll action?