feat: wrapper to handle mousedown event

This commit is contained in:
karishmas6
2024-06-08 22:55:12 +05:30
parent 990f844184
commit 15ffc2984b

View File

@@ -87,3 +87,13 @@ const handleGenerateAction =
await generator.customAction(action, settings, page);
}
/**
* A wrapper function for handling mousedown event.
* @param coordinates - coordinates of the mouse click
* @category HelperFunctions
*/
const onMousedown = async (coordinates: Coordinates) => {
logger.log('debug', 'Handling mousedown event emitted from client');
await handleWrapper(handleMousedown, coordinates);
}