Nope, it is not doing the same as before, I have tryed with:
    /**
    * Handling events
    */
    public void onBrowserEvent(Event event) {
        super.onBrowserEvent(event);
        if (mouseListeners != null) {
            int x = event.getClientX() - this.getAbsoluteLeft();
            int y = event.getClientY() - this.getAbsoluteTop();
            switch (event.getTypeInt()) {
                case Event.ONCLICK:
                        if (clickListeners != null) {
                                clickListeners.fireClick(this);
                        }
                        break;
                case Event.ONMOUSEDOWN:
                        if (mouseListeners != null) {
                                mouseListeners.fireMouseDown(this, x, y);
                                }
                        break;
                case Event.ONMOUSEMOVE:
                        if (mouseListeners != null) {
                                mouseListeners.fireMouseMove(this, x, y);
                        }
                        break;
                case Event.ONMOUSEUP:
                        if (mouseListeners != null) {
                                mouseListeners.fireMouseUp(this, x, y);
                        }
                        break;
                case Event.ONMOUSEOUT:
                        if (mouseListeners != null) {
                                mouseListeners.fireMouseLeave(this);
                        }
                 break;
            }
        }
    }

and the canvas is still receiving the events, but it does not get the
correct coordinates.
Any idea why?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to