void recursivelyHandleSwipe(final double x, final double y, final SwipeEvent e) { for (final SwipeListener listener : handler.swipers) { if (x < 0) listener.swipedLeft(e); if (x > 0) listener.swipedRight(e); if (y < 0) listener.swipedDown(e); if (y > 0) listener.swipedUp(e); if (e.isConsumed()) return; } final PerComponentNotifier next = getNextNotifierForComponent(component.getParent()); if (next != null) next.recursivelyHandleSwipe(x, y, e); }