Example usage for com.google.gwt.event.dom.client MouseWheelHandler onMouseWheel

List of usage examples for com.google.gwt.event.dom.client MouseWheelHandler onMouseWheel

Introduction

In this page you can find the example usage for com.google.gwt.event.dom.client MouseWheelHandler onMouseWheel.

Prototype

void onMouseWheel(MouseWheelEvent event);

Source Link

Document

Called when MouseWheelEvent is fired.

Usage

From source file:gwt.material.design.components.client.base.widget.MaterialWidget.java

License:Apache License

@Override
public HandlerRegistration addMouseWheelHandler(final MouseWheelHandler handler) {
    return addDomHandler(event -> {
        if (isEnabled())
            handler.onMouseWheel(event);
    }, MouseWheelEvent.getType());
}