]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Fix swipe docs 11495/head
authorGil Forcada Codinachs <gil.gnome@gmail.com>
Fri, 7 Sep 2018 20:10:48 +0000 (22:10 +0200)
committerGitHub <noreply@github.com>
Fri, 7 Sep 2018 20:10:48 +0000 (22:10 +0200)
See discussion on https://github.com/zurb/foundation-sites/issues/11490

docs/pages/javascript-utilities.md

index 5020fd7f281bf201b5b4d0f83ee388972684f4ee..5e15b6d295f191d3018b664f2fa94b57a7b05068 100644 (file)
@@ -147,7 +147,7 @@ Allows you to add `swipe*` and pseudo-drag events to elements.
 ```js
 $('selector').addTouch().on('mousemove', handleDrag);
 // Binds elements to touch events. Used in the Slider plugin for mobile devices.
-$('selector').spotSwipe().on('swipeleft', handleLeftSwipe);
+$('selector').on('swipeleft', handleLeftSwipe);
 // Binds elements to swipe events. Used in the Orbit plugin for mobile devices.
 ```