MouseWheelEvent does not fire on GWT FocusPanel, if FocusPanel is on GWT PopupPanel (only in Chrome and Safari). Help me, please!

109 views
Skip to first unread message

Sprinter

unread,
May 4, 2012, 2:36:07 AM5/4/12
to google-we...@googlegroups.com
Here's the code:

public class MyEntryPoint implements EntryPoint {

    PopupPanel      popupPanel = new PopupPanel(false,true);
    FocusPanel      focusPanel = new FocusPanel();
    VerticalPanel   popupContent = new VerticalPanel();

    public void onModuleLoad() {

        popupContent.add(new Label("Simple popup test"));
        popupContent.add(new Label("_"));

        focusPanel.add(popupContent);
        popupPanel.setWidget(focusPanel);

        popupPanel.center();

        focusPanel.addMouseWheelHandler(new MouseWheelHandler(){
            public void onMouseWheel(MouseWheelEvent event) {
                System.out.println("deltaY = " + event.getDeltaY());
            }
        });

    }
}

If you run a GWT app in Firefox, move your mouse over the text "Simple popup test" and scroll the mouse wheel, then onMouseWheel will be called.

If this application is running in Chrome or Safari, place your mouse over the text "Simple popup test" and scroll the mouse wheel, then onMouseWheel not called. If you place the mouse cursor is not on the GWT Label and scroll the mouse wheel, the event will be called onMouseWheel.

Maybe someone has already corrected this? Thank you very much.



Jens

unread,
May 4, 2012, 9:10:07 AM5/4/12
to google-we...@googlegroups.com

Sprinter

unread,
May 8, 2012, 2:53:25 AM5/8/12
to google-we...@googlegroups.com
Yes, it helped the decision described in:
http://code.google.com/p/google-web-toolkit/issues/detail?id=7349
Thank you very much!


пятница, 4 мая 2012 г., 16:10:07 UTC+3 пользователь Jens написал:
Reply all
Reply to author
Forward
0 new messages