Just some more information that might help someone else…apparently support is very inconsistent.
So, I rolled up a new project after updating npm to the latest version and then doing an npm update.
This is just the skeleton app with the only code being the click handler.
export class App {
message = '';
testClick(event)
{
this.message = event.detail;
console.log(event);
}
}
<template>
<h1>Event.Detail = ${message}</h1>
<div onclick click.delegate="testClick($event)">Test Click</div>
</template>
Same issue where detail in $event object is only 1, now this has been done in Chrome.
I dragged out Edge and it worked…back to Chrome, and it doesn’t.
Now remember that Chrome worked in the GIST supplied, as well as the JSFiddle.
I verified running the latest Chrome installed and it indicated it was.
I run Dev in a VM, so went ahead and closed everything down and shutdown and restarted the VM.
No change, Chrome still failing.
So something wrong with my local machine and installation?
Copied files over the test project to my external test server, and browsed using other computers, browsers.
fails means always 1
Description
Test project / GIST
Win10 Desktop Edge works - counts all rapid mouse clicks
works, works
Win10 Desktop Chrome
fails, works
iPhone 6 Safari
fails, fails
iPhone 6 Chrome
fails, fails due to service worker
iPad mini 4 Safari
fails, fails
iPad mini 4 Chrome
fails, fails
Win10 Surface Chrome [taps loop 1 -3, mouse will continue to count up]
works, works
Win10 Surface Edge [Taps will continue to count up, mouse will continue to count up]
works, works
Samsung S5 Chrome [taps loop 1-3]
works, works