Set hold trigger timer to 600 milliseconds in order to popup the context menu faster for touch devices

This commit is contained in:
Hadi Nategh 2014-10-22 15:21:07 +00:00
parent fb0059b796
commit 89a9c860e4

View File

@ -18,7 +18,7 @@
* tap and hold on touch interfaces. * tap and hold on touch interfaces.
*/ */
(function($) { (function($) {
var TAP_AND_HOLD_TRIGGER_TIMER = 1000; var TAP_AND_HOLD_TRIGGER_TIMER = 600;
var MAX_DISTANCE_ALLOWED_IN_TAP_AND_HOLD_EVENT = 40; var MAX_DISTANCE_ALLOWED_IN_TAP_AND_HOLD_EVENT = 40;
var TOUCHSTART = "touchstart"; var TOUCHSTART = "touchstart";
var TOUCHEND = "touchend"; var TOUCHEND = "touchend";