Update the `swipe.js` script so the "continuous" option works (see #6762)