Merge pull request #1129 from eoghanmurray/pointerType

Record pointerType on clicks
This commit is contained in:
Eoghan Murray
2023-04-12 11:20:10 +01:00
committed by GitHub
4 changed files with 69 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
---
'rrweb': minor
'@rrweb/types': minor
---
click events (as well as mousedown/mouseup/touchstart/touchend events) now include a `.pointerType` attribute which distinguishes between ['pen', 'mouse' and 'touch' events](https://developer.mozilla.org/en-US/docs/Web/API/PointerEvent/pointerType)