Re: [pointerevents] What should be the 'detail' property of pointer events? (#98)

That's a good point. I suppose Mathlive's code usually ends up using the manual option for detecting double clicks.
Which means it's using Date.now() to detect double clicks
https://github.com/arnog/mathlive/blob/794c8778f4d7f94b51b0cf7c80fe4a325b679604/src/editor-mathfield/pointer-input.ts#L116-L132

Based on this comment, I'm assuming using a timer is the one option that should be discouraged.
> (eg. I worked with one developer trying to detect double-tap - I really didn't want them relying on their own timer).
> -- @[RByers](https://github.com/RByers)

Hence my question about the future `clickCount` property for pointer events.


P.S. Firefox seems to actually set the `event.detail` property for mousemove events.
```js
window.addEventListener("mousemove", (evt) => {
console.log(evt.detail)})
```
![image](https://github.com/w3c/pointerevents/assets/10220080/0aa9f640-a9ec-43b8-89a0-205b9ef2f5ee)


-- 
GitHub Notification of comment by stefnotch
Please view or discuss this issue at https://github.com/w3c/pointerevents/issues/98#issuecomment-1629675502 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 10 July 2023 20:20:35 UTC