feat: wheel handler

This commit is contained in:
karishmas6
2024-06-08 22:59:21 +05:30
parent d042a64612
commit e61990bca3

View File

@@ -147,3 +147,8 @@ const onWheel = async (scrollDeltas: ScrollDeltas) => {
await handleWrapper(handleWheel, scrollDeltas);
};
const handleWheel = async (generator: WorkflowGenerator, page: Page, { deltaX, deltaY }: ScrollDeltas) => {
await page.mouse.wheel(deltaX, deltaY);
logger.log('debug', `Scrolled horizontally ${deltaX} pixels and vertically ${deltaY} pixels`);
};