Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Mouse wheel in firefox from version 69 #9671

Closed
eTouchard opened this issue Oct 10, 2019 · 2 comments
Closed

Support Mouse wheel in firefox from version 69 #9671

eTouchard opened this issue Oct 10, 2019 · 2 comments

Comments

@eTouchard
Copy link

eTouchard commented Oct 10, 2019

GWT version: 2.8.2
Browser (with version): firefox 69.0.2
Operating System: All


Description

Mouse wheel is no longer taken into account in firefox

Steps to reproduce

Create an MouseWheelHandler and add it to a widget using addDomHandler(handler, MouseDownEvent.getType());

when turning the wheel the handler is not called

@rdeangelis83
Copy link

com.google.gwt.user.client.ui.Widget#addDomHandler(handler, MouseWheelEvent.getType()) works correctly also in Firefox.
Can you provide simple example project how to reproduce this issue?

@zbynek
Copy link
Contributor

zbynek commented Oct 13, 2021

Technically the wheel events fire, but implementing a handler that checks if it's scrolling up or down is impossible, because

public native int eventGetMouseWheelVelocityY(NativeEvent evt) /*-{
rounds the delta to zero for many input devices and if you try to circumvent that by extracting wheelDelta directly, you run into problems with GWT using two different event types

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants