mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-22 11:39:30 -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 yDiff = null;
|
||||||
var timeDown = null;
|
var timeDown = null;
|
||||||
var startEl = null;
|
var startEl = null;
|
||||||
|
var touchCount = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fires swiped event if swipe detected on touchend
|
* Fires swiped event if swipe detected on touchend
|
||||||
@@ -84,6 +85,7 @@
|
|||||||
var eventData = {
|
var eventData = {
|
||||||
dir: eventType.replace(/swiped-/, ''),
|
dir: eventType.replace(/swiped-/, ''),
|
||||||
touchType: (changedTouches[0] || {}).touchType || 'direct',
|
touchType: (changedTouches[0] || {}).touchType || 'direct',
|
||||||
|
fingers: touchCount, // Number of fingers used
|
||||||
xStart: parseInt(xDown, 10),
|
xStart: parseInt(xDown, 10),
|
||||||
xEnd: parseInt((changedTouches[0] || {}).clientX || -1, 10),
|
xEnd: parseInt((changedTouches[0] || {}).clientX || -1, 10),
|
||||||
yStart: parseInt(yDown, 10),
|
yStart: parseInt(yDown, 10),
|
||||||
@@ -102,7 +104,6 @@
|
|||||||
yDown = null;
|
yDown = null;
|
||||||
timeDown = null;
|
timeDown = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Records current location on touchstart event
|
* Records current location on touchstart event
|
||||||
* @param {object} e - browser event object
|
* @param {object} e - browser event object
|
||||||
@@ -120,6 +121,7 @@
|
|||||||
yDown = e.touches[0].clientY;
|
yDown = e.touches[0].clientY;
|
||||||
xDiff = 0;
|
xDiff = 0;
|
||||||
yDiff = 0;
|
yDiff = 0;
|
||||||
|
touchCount = e.touches.length;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user