How do I capture the direction of the swipe event in a IronSwipeableContainer ?
@UiField IronSwipeableContainer swipeable;
...
swipeable.addIronSwipeHandler(new IronSwipeEventHandler() {
@Override
public void onIronSwipe(IronSwipeEvent event) {
log.info("onIronSwiped! ");
}
});
It is in the js object. I just cannot figure out how to access it from java.
event_0_g$.nativeEvent_1_g$.detail.direction = "left"
for extra credit - How do I prevent the swipe from dismissing (swipe away) the container?