Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js/src/util
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-10-12 15:48:19 +0300
committerGitHub <noreply@github.com>2021-10-12 15:48:19 +0300
commitdb44392bda22f3d5319d2880c992f76d27d2a60c (patch)
treec5ddda1258d34a1d26d59feeb564680c7510fef9 /js/src/util
parentd7dec124ebd1d67e66cb195646cbd42980145158 (diff)
Swipe: add test to ensure that it ignores `pinch` events (#35161)
Diffstat (limited to 'js/src/util')
-rw-r--r--js/src/util/swipe.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/util/swipe.js b/js/src/util/swipe.js
index 321572eb8b..a78f598d9d 100644
--- a/js/src/util/swipe.js
+++ b/js/src/util/swipe.js
@@ -1,6 +1,7 @@
import EventHandler from '../dom/event-handler'
import { execute, typeCheckConfig } from './index'
+const NAME = 'swipe'
const EVENT_KEY = '.bs.swipe'
const EVENT_TOUCHSTART = `touchstart${EVENT_KEY}`
const EVENT_TOUCHMOVE = `touchmove${EVENT_KEY}`
@@ -11,7 +12,6 @@ const POINTER_TYPE_TOUCH = 'touch'
const POINTER_TYPE_PEN = 'pen'
const CLASS_NAME_POINTER_EVENT = 'pointer-event'
const SWIPE_THRESHOLD = 40
-const NAME = 'swipe'
const Default = {
leftCallback: null,