Missing Click-Count Value in Single Click Action
Description:
I'm using cliclick 5.0 to automate interactions with ChemDraw, a chemical structure drawing tool. When performing a single click using cliclick, the click-count field is not set in the generated CGEvent. This leads to a ChemDraw receiving a mouseUp event with a click-count of zero, which causes them to ignore the click as a valid user interaction. This issue was reproduced when we used cliclick to perform a single click on a UI element in ChemDraw. The click-count is zero, even though a mouseUp event is registered.
Expected Behavior: The click-count should be explicitly set to 1 during single click actions, similar to how it is set to 2 during double-click actions.
Actual Behavior: The click-count is missing (defaults to zero), causing ChemDraw to ignore the click.
Relevant Code References:
Double-click sets click-count to 2: DoubleclickAction.m#L66
Single-click does not set click-count: ClickAction.m#L63
Attaching the recording of the issue we are facing due to this:
https://github.com/user-attachments/assets/b5e608d4-9ce4-4065-9b25-5e5f10c1e78d