Skip to content

Conversation

@pavelfeldman
Copy link
Member

No description provided.

src/dom.ts Outdated
result.x += point.x / 4;
result.y += point.y / 4;
}
result.x = (result.x * 100 | 0) / 100;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's instead round at line 193, to handle _offsetPoint case as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

});

it('should climb dom for pointer-events:none targets', async({page, server}) => {
await page.goto(server.PREFIX + '/input/pointer-events.html');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: might as well do setContent for easier reading.

await page.setContent('<button><label style="pointer-events:none">Click target</label></button>')

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@pavelfeldman pavelfeldman merged commit 889cf8f into microsoft:master Apr 7, 2020
@pavelfeldman pavelfeldman deleted the pointerEvents branch April 17, 2020 21:12
debs-obrien pushed a commit to debs-obrien/playwright that referenced this pull request Jun 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants