/** * Get the change in the mouse wheel position along the Y-axis; negative if * the mouse wheel is moving north (toward the top of the screen) or positive * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values are not normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public int getDeltaY() { return getNativeEvent().getMouseWheelVelocityY(); }
public void onMouseWheel(MouseWheelEvent event) { getListener().onMouseWheel(getSource(event), new MouseWheelVelocity(Event.as(event.getNativeEvent()))); } }
/** * Get the change in the mouse wheel position along the Y-axis; negative if * the mouse wheel is moving north (toward the top of the screen) or positive * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values are not normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public int getDeltaY() { return getNativeEvent().getMouseWheelVelocityY(); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(final MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
/** * Get the change in the mouse wheel position along the Y-axis; negative if * the mouse wheel is moving north (toward the top of the screen) or positive * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values are not normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public int getDeltaY() { return getNativeEvent().getMouseWheelVelocityY(); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(final MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
/** * Returns the change in the mouse wheel position along the Y-axis; positive if * the mouse wheel is moving north (toward the top of the screen) or negative * if the mouse wheel is moving south (toward the bottom of the screen). * * Note that delta values *are* normalized across browsers or OSes. * * @return the delta of the mouse wheel along the y axis */ public static double getNormalizedDeltaY(final MouseWheelEvent e) { return getNativeNormalizedDeltaY(e.getNativeEvent()); }
@Override public void onMouseWheel(MouseWheelEvent event) { int wheelDeltaX = 0; int wheelDeltaY = 0; if (isScrollingEnabledX()) { wheelDeltaX = getMouseWheelVelocityX(event.getNativeEvent()) / 10; } if (isScrollingEnabledY()) { wheelDeltaY = getMouseWheelVelocityY(event.getNativeEvent()) / 10; } wheel(wheelDeltaX, wheelDeltaY, event.getClientX(), event.getClientY()); } }, MouseWheelEvent.getType());
@Override public void onMouseWheel(MouseWheelEvent event) { int wheelDeltaX = 0; int wheelDeltaY = 0; if (isScrollingEnabledX()) { wheelDeltaX = getMouseWheelVelocityX(event.getNativeEvent()) / 10; } if (isScrollingEnabledY()) { wheelDeltaY = getMouseWheelVelocityY(event.getNativeEvent()) / 10; } wheel(wheelDeltaX, wheelDeltaY, event.getClientX(), event.getClientY()); } }, MouseWheelEvent.getType());
public void onMouseWheel(MouseWheelEvent event) { getListener().onMouseWheel(getSource(event), new MouseWheelVelocity(Event.as(event.getNativeEvent()))); } }
@Override public void onMouseWheel(MouseWheelEvent event) { final boolean isNorth; if (event.getDeltaY() == 0) { isNorth = (getWheelDelta(event.getNativeEvent()) < 0); } else { isNorth = event.isNorth(); } Coordinate location = getLocation(event, RenderSpace.WORLD); scrollZoomTo(isNorth, location); }
@Override public void onMouseWheel(MouseWheelEvent event) { final boolean isNorth; if (event.getDeltaY() == 0) { isNorth = (getWheelDelta(event.getNativeEvent()) < 0); } else { isNorth = event.isNorth(); } Coordinate location = getLocation(event, RenderSpace.WORLD); scrollZoomTo(isNorth, location); }
public void onMouseWheel(MouseWheelEvent event) { getListener().onMouseWheel(getSource(event), new MouseWheelVelocity(Event.as(event.getNativeEvent()))); } }
@Override public void onMouseWheel(MouseWheelEvent event) { final boolean isNorth; if (event.getDeltaY() == 0) { isNorth = (getWheelDelta(event.getNativeEvent()) < 0); } else { isNorth = event.isNorth(); } final Coordinate location = getLocation(event, RenderSpace.WORLD); if (intervalTimer != null) { intervalTimer.cancel(); } intervalTimer = new Timer() { @Override public void run() { scrollZoomTo(isNorth, location); } }; intervalTimer.schedule(intervalMillis); }