From a48bffa90c4e31cc3564ee97cbf0513cd3c2aec5 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Thu, 19 Aug 2021 10:04:33 +0300 Subject: [PATCH] Message: Faster long-tap context menu (follow-up) --- 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 8da2a213..ed264429 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 = 150; +const LONG_TAP_DURATION_MS = 200; const SELECTION_ANIMATION_DURATION_MS = 200; let contextMenuCounter = 0;