B
bizt
Hi,
I have a site that Im working on where we have an input tag which has
a numeric value. Say that value is 1, I want to apply an event handler
where if the mouse scroll wheel is scrolled up it will go 2. If they
do a long scroll it will go 2,3,4,5,6,7,8... Obviously this involved
me capturing the event and direction.
In IE, we use something like:
<input onmousewheel="doInputScroll(event, this);"...
... allows me to capture the event but onmousewheel is only supported
by IE. In Firefox I found onscroll as well as some functions on how to
capture the direction but event handler can only be applied to certain
HTML elements however the only element I had any luck with was <body>.
I did consider wrapping my input element in a <div> and applying the
event handler to that but it didn't seem to work either for some
reason anyway.
Does anyone have any ideas how I might get this working? Its not
common functionality I know but many of our web users are used to this
feature in IE and it would be great to put this over to FF too
Cheers
Burnsy
I have a site that Im working on where we have an input tag which has
a numeric value. Say that value is 1, I want to apply an event handler
where if the mouse scroll wheel is scrolled up it will go 2. If they
do a long scroll it will go 2,3,4,5,6,7,8... Obviously this involved
me capturing the event and direction.
In IE, we use something like:
<input onmousewheel="doInputScroll(event, this);"...
... allows me to capture the event but onmousewheel is only supported
by IE. In Firefox I found onscroll as well as some functions on how to
capture the direction but event handler can only be applied to certain
HTML elements however the only element I had any luck with was <body>.
I did consider wrapping my input element in a <div> and applying the
event handler to that but it didn't seem to work either for some
reason anyway.
Does anyone have any ideas how I might get this working? Its not
common functionality I know but many of our web users are used to this
feature in IE and it would be great to put this over to FF too
Cheers
Burnsy