Closed Bug 245130 Opened 22 years ago Closed 22 years ago

Javascript; ondblclick triggered by Select Scrollbar click

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 222998

People

(Reporter: djlurch01, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 <SELECT name=ao size=5 ondblclick="jsAddActivity(this);"> <option value=foo>foo</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> <option value=foo1>foo1</option> </SELECT> I use this code to perform an action when a browser double clicks on an option in a form select field that is 5 options high. Say the select form is 5 options high. Double clicking on an option triggers the JS action correctly. Now suppose I try to scroll down through the options with the scroll down button on the select form field. When I double click on the scroll down button the action gets called. This behaviour is not shown in either Opera or IE on Windows. Reproducible: Always Steps to Reproduce: 1. 2. 3.
hmm, but the scrollbar is part of the select element, is it not? not sure whether this is valid, but in any case, its the wrong component.
Assignee: bugs → nobody
Component: Form Manager → Layout: Form Controls
Product: Firefox → Browser
QA Contact: firefox.form-manager → core.layout.form-controls
Version: unspecified → Trunk
(In reply to comment #1) > hmm, but the scrollbar is part of the select element, is it not? not sure > whether this is valid, but in any case, its the wrong component. Mike: IMHO a scrollbar is a navigational tool and not an inherent part of a select form field. If action should be taken when double clicking on the form element (in it's totality), this should be handled by some sort of div/span implementation. The action should be triggered by double clicking on an element of the select list, not the navigational structure. Precedent has already been set. Try this: right click in the window of Firefox. You should get a context sensitive popup list. Now try right clicking on the scroll bar for the browser window. No popup occurs.
AFAICS, this behavior is only happening in Firefox. It's not happening in the latest Mozilla trunk build I tried. *** This bug has been marked as a duplicate of 222998 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.