doubletap: make it customizable with url query
This commit is contained in:
parent
b815db02cd
commit
6cd19f7285
2 changed files with 3 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ module.exports = (element, callback)=>{
|
|||
var tapLength = tapTime - lastTapTime
|
||||
|
||||
if (
|
||||
tapLength < 400 && touchId == d.identifier &&
|
||||
tapLength < DOUBLE_TAP_TIME && touchId == d.identifier &&
|
||||
Math.abs(lastTapX - d.pageX) < 20 &&
|
||||
Math.abs(lastTapY - d.pageY) < 20
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,8 @@ PXSCALE_RESET()
|
|||
|
||||
window.CANVAS_SCALING = ARGV.hdpi ? window.devicePixelRatio : 1
|
||||
|
||||
window.DOUBLE_TAP_TIME = ARGV.doubletap ? ARGV.doubletap : 375
|
||||
|
||||
///////////////////////
|
||||
|
||||
window.sourceMap = require('./libs/source-map.min.js')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue