Detecting/Stopping Window Scrolling

dashifen
Fri, 14 Dec 2007 20:34:00 -0000

Greetings all,

I googled around for a while this afternoon looking for a solution
that would allow me to detect and halt scrolling events.  I found some
ways to detect scrolling with the mouse wheel, but I was looking for a
more general solution.  I was trying to poll for a change in the
scrolling position of the page and, upon detecting a difference
between the start of the poll and the end, but that produced an
annoying flicker as the page was reset after detecting a scroll.  My
goal is to make it so that the scrolling doesn''t happen.

Is there a way to observe scrolling events and then use "event.stop()"
to make sure they don''t happen under certain conditions?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---