Flip with Swipebox

image image image image

When a Swipebox is used on a card animated with Flip, the Swipebox fails, as can be seen in this demo when we use version 1.0.1 of Flip. If we apply the patch the issue is fixed.

Click on the thumbnails. A Swipebox should open.

Flip with Swipebox

The problem is caused by Flip disabling the bubbling of click events on any links that are contained inside the element to be flipped, as can be seen in lines 80-82 of the source code.

This code was written to prevent the card from flipping when buttons and links on the card are pressed. However, preventing event bubling is dangerous.

The better solution is to ignore those events that you are not interested in.