doubletap: make it customizable with url query

This commit is contained in:
jean-emmanuel 2017-06-14 21:14:43 +02:00
parent b815db02cd
commit 6cd19f7285
2 changed files with 3 additions and 1 deletions

View file

@ -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
) {

View file

@ -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')