mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 00:59:29 -07:00
update vendor scripts
This commit is contained in:
1902
package-lock.json
generated
1902
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
2
server/scripts/vendor/auto/luxon.js.map
vendored
2
server/scripts/vendor/auto/luxon.js.map
vendored
File diff suppressed because one or more lines are too long
784
server/scripts/vendor/auto/luxon.mjs
vendored
784
server/scripts/vendor/auto/luxon.mjs
vendored
File diff suppressed because it is too large
Load Diff
4
server/scripts/vendor/auto/swiped-events.js
vendored
4
server/scripts/vendor/auto/swiped-events.js
vendored
@@ -35,6 +35,7 @@
|
||||
var yDiff = null;
|
||||
var timeDown = null;
|
||||
var startEl = null;
|
||||
var touchCount = 0;
|
||||
|
||||
/**
|
||||
* Fires swiped event if swipe detected on touchend
|
||||
@@ -84,6 +85,7 @@
|
||||
var eventData = {
|
||||
dir: eventType.replace(/swiped-/, ''),
|
||||
touchType: (changedTouches[0] || {}).touchType || 'direct',
|
||||
fingers: touchCount, // Number of fingers used
|
||||
xStart: parseInt(xDown, 10),
|
||||
xEnd: parseInt((changedTouches[0] || {}).clientX || -1, 10),
|
||||
yStart: parseInt(yDown, 10),
|
||||
@@ -102,7 +104,6 @@
|
||||
yDown = null;
|
||||
timeDown = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Records current location on touchstart event
|
||||
* @param {object} e - browser event object
|
||||
@@ -120,6 +121,7 @@
|
||||
yDown = e.touches[0].clientY;
|
||||
xDiff = 0;
|
||||
yDiff = 0;
|
||||
touchCount = e.touches.length;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user