Help with Opera & onscroll event.

Y

Yansky

Hi, I have a function that I want to execute "onscroll" in Opera. But
I found that if a user has smooth scrolling enabled in the Opera
preferences, it makes Opera fire a scroll event multiple times. (I
guess that's how they achieve the smooth effect)

So how could I make it so that the onscroll event is fired once per
user scroll, but not per automatic scroll that Opera generates. Does
that make sense? :)

I guess I want to do something like:

if (lots of automatic scrolls events){
for(the last scroll event){
//do stuff (for people that have smooth scrolling turned
on)
}
}
else{
window.onscroll = //do stuff (for people that have smooth
scrolling turned off)
}
 

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,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top