One is the double clicking on a touch screen, like a surface laptop or a cellphone or a tablet. Specifically the surface laptop is a very interesting case because it shows people that you can have touch screen and mouse input at the same time. This is something that I looked really hard on the W3C standards and didn't find an answer to, which is, when does the dblclick event fire? No one knows, it's not specified. And interestingly enough some browsers, on the same platform, do fire dblclick when you tap twice on a touch screen. [...] Some platforms, when you double tap the screen on the same point, it will fire a dblclick event in JS. Some other platforms will not, on the same hardware with the same code. That was hell because the problem with this is there is no feature detection for that case. I cannot automate that case, I can't have a test grid with a rubber finger hitting the screen with different browsers. I can't Selenium that shit.
What happened in the other browsers?
They just don't fire the dblclick event. You have 2 pointer events. You have one pointerdown event followed by a pointerup event, and then another pointerdown event and another pointerup event. Then you have the backwards compatibility mousedown and mouseup events, but you do not have a dblclick event. You just don't have it.
Standards process
Prompted by a discussion of how Google and Mozilla are working on this research together:
One critique that I have to make is that Google, the Chromium team, has a tendency to create a new standard way too fast. Then Mozilla cannot keep up with that standard. By the time that Mozilla and Safari and maybe Internet Explorer have caught up with that standard, there are bugs on that standard, but Chrome has already rolled that out and there's a Google product that uses that new standard. "I'm so sorry, we cannot cancel this feature, we cannot get this feature out of Google Chrome because we already have Google products depending on that." [...] Please don't implement standards before another party has implemented that same standard you're proposing.
Someone has to implement it first, right?
Made with FlippingBook - professional solution for displaying marketing and sales documents online