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:33:05 +00:00
parent aafb2c1d12
commit 06adc041fc

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";