- IE, select fields and the mousewheel
- Should you be allowed to use a scroll wheel to scroll thru the choices of a select field? It looks like you can't in Firefox but IE lets you. This has never bothered me till today when I needed to disable it for *certain* select fields. A .Net application my team is currently working on allows for a post-back to the server on the 'onchange' event of a select field. Everything works fine if you click on the dropdown and then select your choice. However, if you use your scroll wheel on your mouse to scroll thru the choices, then several post-back requests gets triggered all at once causing all sorts of problems. Turns out the simple and easy fix is to add onmousewheel="return false;" as an attribute to your select field. The onmousewheel event is a Microsoft proprietary event but since that's the only browser that has this quirk, I can live with it. Gotta love IE for all the work it gives me. Too bad I'm not a consultant and can charge by the hour for fixing bugs like these. :-) IE, select fields and the mousewheel
- 1 March 2006 … 1 - COMMENTS