Fix the broken Mediabox swipe support (see #5756)