update vendor scripts
This commit is contained in:
parent
9f9dafa30c
commit
af4ba1b881
4 changed files with 1480 additions and 1212 deletions
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
782
server/scripts/vendor/auto/luxon.mjs
vendored
782
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue