From 2a1fc61fa76e91ec75ca3417823efb43f3fbafc8 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Mon, 16 Aug 2021 16:58:51 +0300 Subject: [PATCH] Message: Faster long-tap context menu --- src/hooks/useContextMenuHandlers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useContextMenuHandlers.ts b/src/hooks/useContextMenuHandlers.ts index 0d3fc11c5..8da2a2136 100644 --- a/src/hooks/useContextMenuHandlers.ts +++ b/src/hooks/useContextMenuHandlers.ts @@ -4,7 +4,7 @@ import { useState, useEffect, useCallback } from '../lib/teact/teact'; import { IAnchorPosition } from '../types'; import { IS_TOUCH_ENV, IS_SINGLE_COLUMN_LAYOUT } from '../util/environment'; -const LONG_TAP_DURATION_MS = 250; +const LONG_TAP_DURATION_MS = 150; const SELECTION_ANIMATION_DURATION_MS = 200; let contextMenuCounter = 0;