View Single Post
Old 04-06-2004, 11:53 PM   PM User | #1
SlavaTT
New Coder

 
Join Date: Oct 2003
Location: Ukraine
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
SlavaTT is an unknown quantity at this point
Overriding onmousewheel event

Hello

I have a div element with it's childNodes collection filled with span elements,
div has style.overflow set to auto. I want it to work like a select/listbox.
I attached an event handler to onmousewheel event in my javascript class and scroll this div using scrollTop property when next/prev span element is not in div's visible area.
But trouble is div implements mousewheel scrolling too, like you're scrolling html page and I have some kind of a double scrolling . What I want is to disable div's standard mousewheel scrolling (but keep scroll bars).

Thanks

Vladislav
SlavaTT is offline   Reply With Quote