mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
Swipe: add test to ensure that it ignores pinch events (#35161)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user