My favorites | Sign in
Google
                
New issue | Search
for
| Advanced search | Search tips
Issue 2902: MouseWheelListener not working properly in Firefox 3
9 people starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  jgw+personal@google.com
Category-UI
Type-Defect
Milestone-1_7


Sign in to add a comment
 
Reported by nitipatil, Sep 21, 2008
Found in GWT Release:
1.5.1

Detailed description:
I have extended FocusPanel in which added a textbox. on the focuspanel
added MouseWheelListener;

which increment/decrement textbox value on mousewheel motion.

It is working fine in IE and FF2; But I Tried same code in FF3; its not
behaving similary. text value incremented by more than one on mousewheel move.

attached a sample code for reproducing this issue


Workaround if you have one:
No.



Links to the relevant GWT Developer Forum posts:
 
TestPanel.java
992 bytes Download
Comment 2 by nitipatil, Sep 21, 2008
It's misbehaving only when I move mouse wheel while focus(mouse pointer) is on
textbox value.

if I Move mouse wheel while mouse pointer is somewhat away from the textbox value its
working
as expected. 

Really Strange.
Comment 3 by jgw+personal@google.com, Sep 23, 2008
This may be a quirk of FF3's text input implementation. Can you try getting
scrollwheel events in plain HTML on FF3 to see if it refuses to send them over text
inputs? If it fails in that case, then it's probably beyond GWT's ability to do
anything about it.
Status: NeedsInfo
Owner: j...@google.com
Labels: Category-UI Type-Defect
Comment 4 by nitipatil, Sep 24, 2008
I have tried scrollwheel event on plain HTML, through Javascript increment/decrement
the text input value, its working fine in FF3.

find attached HTML which has JS function to capture mousewheel event on "Window".
and update value in textbox on mousewheel motion

Mousewheel listener is working fine in plain HTML in FF3.

Thanks.


test.html
1.5 KB Download
Comment 5 by sahilmankar, Oct 01, 2008
Hi all,
is there any more inputs required for this issue?


Comment 6 by ecc@google.com, Jan 05, 2009
(No comment was entered for this change.)
Status: New
Owner: e...@google.com
Comment 7 by ecc@google.com, Jan 05, 2009
(No comment was entered for this change.)
Status: Accepted
Comment 8 by noel.gordon, Mar 12, 2009
Modified the test.html code initialization section to read

/* Initialization code. */
if (document.documentElement.addEventListener)
  document.documentElement.addEventListener('DOMMouseScroll', wheel, false);
document.documentElement.onmousewheel = wheel;
//-->
</SCRIPT>

and the value in the <INPUT type="text" ...> seems to increment/decrement on
mouse wheel scrolls in IE6, Chrome1, and FF3.0.5, when the mouse is over the
page or over the <INPUT> element.


Comment 9 by jgw+personal@google.com, Apr 17, 2009
(No comment was entered for this change.)
Owner: j...@google.com
Labels: Milestone-1_6_1
Comment 10 by jgw+personal@google.com, Apr 29, 2009
Comment from gwt-contrib (ales.havlik@gmail.com):
Even the MouseWheelListener is broken in GWT 1.6.4.

Example:
public class TestEntryPoint implements EntryPoint {
   MouseWheelListener mwl = new MouseWheelListener() {
       public void onMouseWheel(Widget sender, MouseWheelVelocity velocity) {
           Window.alert("Mouse Wheel Listener");
       }
   };

   public void onModuleLoad() {
       final Label label = new Label("Mouse Wheel Tester");
       final FocusPanel fp = new FocusPanel();
       fp.setSize("100%", "100%");
       fp.addMouseWheelListener(mwl);
       fp.add(label);
       RootPanel.get().add(fp);
   }
}

Tested with:
  Safari 3.2.2 (Win)
  FF 3.0.9 (Win)
  IE 7 (Win)
  Chrome 2.0.172.8 (Win)

When compiled with GWT 1.5.3 it works in all browsers. With GWT 1.6.4 it works in all except FF - the same situation is when I 
use MouseWheelHandler instead MouseWheelListener.
Comment 11 by jgw+personal@google.com, May 15, 2009
Turns out this got inadvertently broken by 1.6's event type map.

Review:
  http://gwt-code-reviews.appspot.com/33820
Status: ReviewPending
Comment 12 by jgw+personal@google.com, May 15, 2009
Committed as r5396.
Status: FixedNotReleased
Comment 13 by jgw+personal@google.com, May 15, 2009
Whoops, wrong window. Too many tabs open...
Status: ReviewPending
Comment 14 by jgw+personal@google.com, May 15, 2009
Fix committed as r5398.
Status: FixedNotReleased
Comment 15 by rafalax, May 28, 2009
Hi! Thanks for this fix. I've tested it on FF3 (linux), IE7(XP) ans Safari(XP) and it
works.
However it still doesn't seem to work in Hosted Mode (linux) :-/ Am I missing something ?
Comment 16 by jgw+personal@google.com, May 29, 2009
Unfortunately, the old version of Mozilla embedded by the Linux hosted-mode browser
doesn't support the mouse wheel very well at all. IIRC, it works to scroll the
document body, but no other elements.

The only solution I'm aware of is to use the nascent out-of-process hosted mode
implementation that exists in trunk against FF3 on Linux. It requires a bit of care
and feeding at the moment, but is reasonably stable.
Comment 17 by sumitcha...@google.com, Jun 11, 2009
 Issue 3539  has been merged into this issue.
Comment 19 by jgw+personal@google.com, Jul 29, 2009
This was released with GWT 1.7. We still need to come back and mark these issues fixed.
Comment 20 by rjrjr+pe...@google.com, Jul 29, 2009
(No comment was entered for this change.)
Labels: Milestone-1_7
Comment 21 by jgw+personal@google.com, Aug 03, 2009
(No comment was entered for this change.)
Status: Fixed
Sign in to add a comment