473,466 Members | 1,286 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

disabling mouse wheel scroll in drop-down list?

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
14 13762
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
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
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
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
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
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
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
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
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
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
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

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

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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: AccessWhiz | last post by:
I have been trying desperately for the past few days to figure out why the MouseWheel solution that I retrieved from the Lebans website won't work. The access database included with the solution...
1
by: Marcin | last post by:
Im using MS Access 2000. i have a main form and ona subform that is scrolled vertically. unfortunately i use mouse scroll to scroll this subform. I appreciate your help
0
by: june | last post by:
Hi: How to get mouse device type (how many button, scroll/wheel?) if I have multiple mice installed. I know if there is only one mouse , we can use getSytemMetrics() to get button of number, is...
4
by: ML | last post by:
I am trying to use the mouse wheel event on a numeric input box to allow the use to scroll to inc/dec the value by 1. The issue I am having is that the delta value returned seems to be off. From...
1
by: Ima Loozer | last post by:
On one of my forms I have a text box sized and shaped to display multiple lines. The max content of the field is such that the text box may display less than all of the data in the field. ...
1
by: Jeff Williams | last post by:
I have an application which I need to change the data record which is displayed on screen by using the scroll wheel of the mouse. I would like to call a forward and back function/method when the...
5
bartonc
by: bartonc | last post by:
My development environment has a setting for a single font size buried in the preferences dialog. Every once in a while, the font would change to a new size. I assumed that there was a magic control...
2
by: wpollans | last post by:
Hello, I need to able to write JS that will click on a link with the middle mouse button - so that the link target will open in a new window or tab - using firefox. Or is there a better (more...
1
by: 3338761 | last post by:
I fished through previous posts and found this link to microsoft's site for the code and steps to disable the mousewheel from scrolling through records: ...
5
by: Wayneyh | last post by:
Hi All I want to stop the scroll wheel on the mouse. I have looked through the forum and downloaded the file from MouseWheelOnOff. I have entered the code Private Sub Form_Load() 'Turn...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.