Question about window being scrolled

H

Henri

Hi,

Ok, I want to know if it's possible to let some javascript "monitoring" function know if the browser
window is currently being scrolled, either via the scroll wheel or via the vertical handle. I want
to stop a certain piece of code from executing (it uses the settimeout callback) while the user
scrolls up or down and then resume when the scroll has ended.

I could repeatedly check for changes in scroll value but I'm curious to know if such a thing is, so
to speak, built-in.

Thanks
 
H

Henri

Henri said:
Hi,

Ok, I want to know if it's possible to let some javascript "monitoring"
function know if the browser window is currently being scrolled, either
via the scroll wheel or via the vertical handle. I want to stop a
certain piece of code from executing (it uses the settimeout callback)
while the user scrolls up or down and then resume when the scroll has
ended.

I could repeatedly check for changes in scroll value but I'm curious to
know if such a thing is, so to speak, built-in.

Thanks

don't bother: I just came across the onscroll event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top