From 709b7451a0b02121d2da41e27f63f27a467b17f8 Mon Sep 17 00:00:00 2001 From: Vinyzu <50874994+Vinyzu@users.noreply.github.com> Date: Sun, 18 Aug 2024 21:56:06 +0200 Subject: [PATCH] Decreasing Click Timeout --- cdp_patches/input/async_input.py | 2 +- cdp_patches/input/sync_input.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cdp_patches/input/async_input.py b/cdp_patches/input/async_input.py index 655d32c..d9986cb 100644 --- a/cdp_patches/input/async_input.py +++ b/cdp_patches/input/async_input.py @@ -134,7 +134,7 @@ async def double_click( press_timeout = click_timeout = timeout or self.sleep_timeout if self.emulate_behaviour and emulate_behaviour: - click_timeout = random.uniform(0.14, 0.21) + # click_timeout = random.uniform(0.14, 0.21) self._base.move(x=x, y=y) kwargs = _mk_kwargs(pressed) diff --git a/cdp_patches/input/sync_input.py b/cdp_patches/input/sync_input.py index e9625c5..b85b22a 100644 --- a/cdp_patches/input/sync_input.py +++ b/cdp_patches/input/sync_input.py @@ -130,7 +130,7 @@ def double_click( press_timeout = click_timeout = timeout or self.sleep_timeout if self.emulate_behaviour and emulate_behaviour: - click_timeout = random.uniform(0.14, 0.21) + # click_timeout = random.uniform(0.14, 0.21) self._base.move(x=x, y=y) kwargs = _mk_kwargs(pressed)