Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
BUG: double click not firing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
colesbury@gmail.com  
View profile  
 More options Aug 12 2006, 7:05 pm
From: "colesb...@gmail.com" <colesb...@gmail.com>
Date: Sat, 12 Aug 2006 16:05:18 -0700
Local: Sat, Aug 12 2006 7:05 pm
Subject: BUG: double click not firing
The double click doesn't fire in IE6 -- or at least not on the correct
element.  This is because the __dispatchDblClickEvent function in
DOMImplIE6::init, calls $wnd.__dispatchEvent(), which uses the "this"
object to find an event listener. However, when __dispatchEvent() is
called from __dispatchDblClickEvent the "this" object is $wnd, when it
should be the element that fired the event.

A simple fix is to replace the $wnd.__dispatchEvent() call with
$wnd.__dispatchEvent.call(this);

Here's a test class:

public class Test implements EntryPoint {

    private HTML debug;

    public void onModuleLoad() {
        debug = new HTML();
        FlowPanel panel = new FlowPanel() {
            public void onBrowserEvent(Event event) {
                debug.setHTML(debug.getHTML() + "<br/>" +
DOM.eventGetTypeString(event));
            }
        };
        panel.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK);

        DOM.setStyleAttribute(panel.getElement(), "border", "1px solid
blue");
        panel.setSize("100px", "100px");

        RootPanel.get().add(panel);
        RootPanel.get().add(debug);
    }


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hoosie  
View profile  
 More options Aug 12 2006, 7:54 pm
From: "hoosie" <hoosiem...@gmail.com>
Date: Sat, 12 Aug 2006 16:54:26 -0700
Local: Sat, Aug 12 2006 7:54 pm
Subject: Re: BUG: double click not firing
Good catch on how to fix that, I've been forced to use EventPreviews to
fire the double click.  This problem was the same in v1.0.21 as well,
hopefully it will make the next release!


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google