[Webkit-unassigned] [Bug 16890] New: select boxes are misbehaving when onmousedown, onmouseup events are registered for document

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 16 01:59:33 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16890

           Summary: select boxes are misbehaving when onmousedown, onmouseup
                    events are registered for document
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: PC
               URL: http://www.glucosurfer.org/goto?diagram&language=en&user
                    =278&share=3788281
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: holger.schmeken at glucosurfer.org


My project uses event handlers for onmousedown and onmouseup. When these event
handlers are registered for the document object the select boxes are not
clickable anymore. It seems that that the handler is consuming all mouse events
which prevents the select box from handling it. This happens only on safari and
on all mac and windows versions (as far as I could test that).

Now I have registered the handlers for the appropriate div alone and it works
flawlessly.

// this will cause a problem on apple safari
//
// document.onmousedown = MouseDown;
// document.onmouseup = MouseUp;
//
// now the solution for all browsers
//
x = document.getElementById("cage_image");
if (x)
{
  x.onmousedown = MouseDown;
  x.onmouseup = MouseUp;
}

You will find the section in the javascript code of my page.

Best regards,
Holger Schmeken


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list