Skip to content

Commit

Permalink
Removing Sleep Timeout between Double Clicks
Browse files Browse the repository at this point in the history
Im just trying random stuff at this point ;:D
  • Loading branch information
Vinyzu committed Aug 17, 2024
1 parent 480e039 commit 1e736b5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion cdp_patches/input/async_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,9 @@ async def double_click(

await self.click(button=button, x=x, y=y, timeout=timeout, emulate_behaviour=emulate_behaviour, pressed="__double_click__")
if self.emulate_behaviour and emulate_behaviour:
await self._sleep_timeout(random.uniform(0.14, 0.21))
# await self._sleep_timeout(random.uniform(0.14, 0.21))
# await self._sleep_timeout(timeout=timeout)
pass
await self.click(button=button, x=x, y=y, emulate_behaviour=False, timeout=timeout, pressed="__double_click__")

self.last_x, self.last_y = x, y
Expand Down
3 changes: 2 additions & 1 deletion cdp_patches/input/sync_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,9 @@ def double_click(

self.click(button=button, x=x, y=y, timeout=timeout, emulate_behaviour=emulate_behaviour, pressed="__double_click__")
if emulate_behaviour and self.emulate_behaviour:
self._sleep_timeout(random.uniform(0.14, 0.21))
# self._sleep_timeout(random.uniform(0.14, 0.21))
# self._sleep_timeout(timeout=timeout)
pass
self.click(button=button, x=x, y=y, emulate_behaviour=False, timeout=timeout, pressed="__double_click__")

self.last_x, self.last_y = x, y
Expand Down

0 comments on commit 1e736b5

Please sign in to comment.