By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,688 Members | 1,860 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,688 IT Pros & Developers. It's quick & easy.

disabling mouse wheel scroll in drop-down list?

P: n/a
Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?

Thanks

Oct 18 '06 #1
Share this Question
Share on Google+
14 Replies


P: n/a
ef*****@epitome.com.sg skrev:
Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?
Short answer: no

Oct 18 '06 #2

P: n/a
Henrik Stidsen wrote:
ef*****@epitome.com.sg skrev:
>Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?

Short answer: no
It's possible. I suppose the OP means <SELECT SIZE=1 with "drop-down
list". FF&&NS do not react on wheel events on such elements, so no
problem there. As for MSIE (6+),

<select size="1" onMouseWheel="return false;">

should do.

--
Bart

Oct 18 '06 #3

P: n/a
Bart Van der Donck said the following on 10/18/2006 5:34 AM:
Henrik Stidsen wrote:
>ef*****@epitome.com.sg skrev:
>>Is it possible for me to disable the wheel scroll in a mouse when user
click on a drop-down list?
Short answer: no

It's possible. I suppose the OP means <SELECT SIZE=1 with "drop-down
list". FF&&NS do not react on wheel events on such elements, so no
problem there. As for MSIE (6+),

<select size="1" onMouseWheel="return false;">
Test that in a decent browser :)
should do.
That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.

But, it is now added to my bookmarklet to reenable *my* IE to work the
way *I* want it to work.

Best solution: Design your app in a sensible manner so that my mouse
wheel doesn't screw it up.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 18 '06 #4

P: n/a
Randy Webb skrev:
Best solution: Design your app in a sensible manner so that my mouse
wheel doesn't screw it up.
Agreed - but actually its often the browsers fault that the scrollwheel
screws up anything.

Oct 19 '06 #5

P: n/a
Randy Webb wrote:
Bart Van der Donck said the following on 10/18/2006 5:34 AM:
<select size="1" onMouseWheel="return false;">

Test that in a decent browser :)

That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.
A classic Ignoratio Elenchi. I don't say anything about where/how/if
the onMouseWheel-event should be used. My suggestion is a sheer
technical and practical answer to the original question; and IE-FF-NS
are quite decent browsers.

--
Bart

Oct 19 '06 #6

P: n/a
Bart Van der Donck said the following on 10/19/2006 3:47 AM:
Randy Webb wrote:
>Bart Van der Donck said the following on 10/18/2006 5:34 AM:
>> <select size="1" onMouseWheel="return false;">
Test that in a decent browser :)

That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.

A classic Ignoratio Elenchi.
Perhaps, but who cares?
I don't say anything about where/how/if the onMouseWheel-event should be
used.
You didn't discourage it's use either.
My suggestion is a sheer technical and practical answer to the original question;
Technical answer, yes. Practical answer, no.
and IE-FF-NS are quite decent browsers.
One out of 3 isn't bad.
Of the 3 you mention though, only one supports screwing with my mouse wheel.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 19 '06 #7

P: n/a
Henrik Stidsen said the following on 10/19/2006 3:12 AM:
Randy Webb skrev:
>Best solution: Design your app in a sensible manner so that my mouse
wheel doesn't screw it up.

Agreed - but actually its often the browsers fault that the scrollwheel
screws up anything.
No, it is the programmer who screws it up, the browser only does what it
is told to do. And by not understanding that, it doesn't make it the
"browsers fault" that you want behavior different from what the browser
provides.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 19 '06 #8

P: n/a
Randy Webb wrote:
Bart Van der Donck said the following on 10/19/2006 3:47 AM:
Randy Webb wrote:
Bart Van der Donck said the following on 10/18/2006 5:34 AM:
<select size="1" onMouseWheel="return false;">
Test that in a decent browser :)

That is about as anal as anything in the world though. If a user wants
to scroll with the mouse wheel, then it seems anally anti-user friendly
to disable that.
A classic Ignoratio Elenchi.

Perhaps, but who cares?
Another Ignoratio Elenchi :-)
I don't say anything about where/how/if the onMouseWheel-event should be
used.

You didn't discourage it's use either.
True, since I did not make any statement about it.
My suggestion is a sheer technical and practical answer to the original question;

Technical answer, yes. Practical answer, no.
Practical in a sense that it's intended for immediate use on his page.

--
Bart

Oct 19 '06 #9

P: n/a
Randy Webb skrev:
No, it is the programmer who screws it up, the browser only does what it
is told to do. And by not understanding that, it doesn't make it the
"browsers fault" that you want behavior different from what the browser
provides.
Scenario:
A radiobutton group on a website.
The user selects an option and scrolls the wheel to scroll the page.
The browser instead changes his selection to the last radiobutton and
then scrolls the page.

Whos fault ? The guy who made the website ? The browser ? The User ?

And yes, this actually happens in some browsers, It might be the mouse
driver thats faulty - but thats not the programmers fault either.

Oct 19 '06 #10

P: n/a
ASM
Henrik Stidsen a écrit :
>
Scenario:
A radiobutton group on a website.
The user selects an option and scrolls the wheel to scroll the page.
The browser instead changes his selection to the last radiobutton and
then scrolls the page.

Whos fault ? The guy who made the website ? The browser ? The User ?

And yes, this actually happens in some browsers, It might be the mouse
driver thats faulty - but thats not the programmers fault either.

can you give an url where that happens ?
(natural change of selected button when scroll by mousewheel)

--
ASM
Oct 19 '06 #11

P: n/a
ASM skrev:
And yes, this actually happens in some browsers, It might be the mouse
driver thats faulty - but thats not the programmers fault either.
can you give an url where that happens ?
(natural change of selected button when scroll by mousewheel)
Sorry no, not at the moment. But I do know that it was a problem with
the Cisco CCNA online tests at the school where I took them.

Oct 19 '06 #12

P: n/a

ASM wrote:
Henrik Stidsen a écrit :
Scenario:
A radiobutton group on a website.
The user selects an option and scrolls the wheel to scroll the page.
The browser instead changes his selection to the last radiobutton and
then scrolls the page.

can you give an url where that happens ?
(natural change of selected button when scroll by mousewheel)
This happens to me all the time at tvguide.com. I'll click the
pulldown to change the start time of the show grid, then without
thinking, use the mouse wheel to scroll down. Of course, because the
focus is still on the select box, it changes the selection instead.
Tvguide.com then goes into fits trying to keep up with my changing
start time. Practically locks me up. Hate it!

Kev

Oct 19 '06 #13

P: n/a

Kevin Darling wrote:
ASM wrote:
Henrik Stidsen a écrit :
Scenario:
A radiobutton group on a website.

This happens to me all the time at tvguide.com.
Ooops. Didn't notice the "radiobutton" thingie. Still, I wish tvguide
had a select for the start time, and then a Go button like many
websites. I know they're trying to help speed things up, but boy it's
so easy to mouse-wheel into trouble ;-)

Or, for that matter, use the arrow keys to scroll into trouble as well!

Kev

Oct 19 '06 #14

P: n/a
Kevin Darling schrieb:
Kevin Darling wrote:
>ASM wrote:
>>Henrik Stidsen a écrit :
Scenario:
A radiobutton group on a website.
This happens to me all the time at tvguide.com.

Ooops. Didn't notice the "radiobutton" thingie. Still, I wish tvguide
had a select for the start time, and then a Go button like many
websites. I know they're trying to help speed things up, but boy it's
so easy to mouse-wheel into trouble ;-)

Or, for that matter, use the arrow keys to scroll into trouble as well!
I agree that this wheel behaviour on form elements is disturbing, but I
also agree with most posters that this is no reason to try changing the
user interface.

Might be a good idea to post a feature request to Mozilla? Scrolling an
element if the pointer is over the element that has the focus, and
scrolling the page if the pointer is somewhere else would IMO be a
consistent behaviour.

--
Markus
Oct 19 '06 #15

This discussion thread is closed

Replies have been disabled for this discussion.