Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

JS window object use

$
0
0

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();

sym.$("Text").html(windowScroll);

 

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?

 

Thanks


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>