Skip to content

Commit b8b78b7

Browse files
kblokclaude
andcommitted
fix: filter non-touch pointer events in touchscreen.html to match upstream
Chrome 147 fires additional non-touch pointer events that were being recorded in allEvents, causing ShouldWorkWithTwoTouches to fail. Sync with upstream which added `if (event.pointerType !== 'touch') return` guard. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 60657d0 commit b8b78b7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/PuppeteerSharp.TestServer/wwwroot/input/touchscreen.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@
4949
globalThis.addEventListener(
5050
name,
5151
(event) => {
52+
if (event.pointerType !== 'touch') {
53+
return;
54+
}
5255
allEvents.push({
5356
type: name,
5457
x: event.x,

0 commit comments

Comments
 (0)