From 66a5189bc43ea2117da948cc1bb830509bf3f0ac Mon Sep 17 00:00:00 2001 From: gdh1995 Date: Sat, 9 Sep 2023 23:25:31 +0800 Subject: [PATCH] a 2nd click during dblclick should have .detail=2 --- content/async_dispatcher.ts | 2 +- pages/options.html | 2 +- pages/options_base.ts | 6 +++--- pages/options_popup.ts | 6 ++++++ 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/content/async_dispatcher.ts b/content/async_dispatcher.ts index 9918ed5aa..26cbed2ba 100644 --- a/content/async_dispatcher.ts +++ b/content/async_dispatcher.ts @@ -396,7 +396,7 @@ export const click_async = (async (element: SafeElementForMouse || (OnFirefox && Build.MinFFVer < FirefoxBrowserVer.MinPopupBlockerPassOrdinaryClicksDuringExtMessages && /*#__INLINE__*/ prepareToBlockClick_old_ff(result === ActionType.DispatchAndMayOpenTab , action < kClickAction.plainMayOpenManually + 1 && parentAnchor!), - (await await mouse_(element, CLK, center, modifiers, 0, 0, isTouch)) && result + (await await mouse_(element, CLK, center, modifiers, 0, button, isTouch)) && result || result & ActionType.dblClick)) && getVisibleClientRect_(element)) { // require element is still visible diff --git a/pages/options.html b/pages/options.html index fde404a89..a247f098d 100644 --- a/pages/options.html +++ b/pages/options.html @@ -36,7 +36,7 @@ -