3 ms·
Pointer events integrate inputs from mice, touchscreens, and pens, making separate implementations no longer necessary and authoring for cross-device pointers e
by Saaster 8y ago
Pointer events integrate inputs from mice, touchscreens, and pens, making separate implementations no longer necessary and authoring for cross-device pointers easier. The one input API to rule them all!
Except... of course Pointer Events doesn't work in Safari. Safari doesn't even support the regular mouse event "buttons" property which has been in the specs forever, which is a constant source of Safari specific bugs in my experience. Nothing happens when you click? Oh, you must be using Safari!
Why is input handling such a pain in the behind!
- BaronVonSteuben 8y agoSafari is the new Internet Explorer https://www.safari-is-the-new-ie.com/ https://www.safari-is-the-new-ie.com/
- ballenf 8y agoUntil another browser implements proper tail calls as per the spec, I'll still have great respect for Safari, quirks and all. It's the only browser where you can write fully functional, continuation passing style code without fear of blowing the stack. And all the fear mongering over "it makes debugging haaard" is just frustrating. Debugging is hard, there's just no way around it. The Develop menu in Safari is also without equal in my experience. Quick access to almost a dozen settings each of which requires either command line arguments or buried toggles and restarts in Chrome (or myriad extensions). I do wonder why the console doesn't use a monospace font. That's not the only problem with Safari, but it's one of the most off-putting, glaring issues. Makes you feel like the browser isn't intended for serious work. Which I guess some people would say is true.
- Scarbutt 8y agoThey even solved the debugging complaint of TCO by having a shadow stack but to be fair chrome is way ahead in implemented JS features.
- andrethegiant 8y ago> I do wonder why the console doesn't use a monospace font I use Safari dev tools exclusively and can report that the console does indeed use a monospace font. I wonder how you configured your setup to use otherwise.
- darepublic 8y agoAny reason you prefer Safari dev tools over Chrome's?
- rubyn00bie 8y agoNo, it's not. It cannot be and this is extremely harmful and short sighted. Safari does not have a monopoly on either Desktop or Mobile. Safari while behind does not implement its own broken standards and force them upon everyone. It doesn't allow for semantically broken HTML and simply "fixes it." I'm not trying to be ageist here, but I often find this rhetoric from people who are too young to have actually worked with IE 4-6.
- wvenable 8y agoAt the time IE6 was released it was easily best browser and many many of the standards that we now take for granted (DOM events on every tag, AJAX, etc) were started with IE. Now what followed that was years of stagnation just like we're starting to see with Safari. Safari is the exclusive platform browser for iOS; even Microsoft didn't prevent you from installing alternative browsers! So in that way, Mobile Safari is even worse. From there, everything else follows: developers simply cannot afford to ignore Safari, despite its flaws, just like they couldn't afford to ignore IE despite its flaws.
- localvoid 8y ago> making separate implementations no longer necessary Until you actually start to implement gesture disambiguation and realize that pointer events are useless [1][2] 1. https://github.com/w3c/pointerevents/issues/178 https://github.com/w3c/pointerevents/issues/178 2. https://github.com/w3c/pointerevents/issues/216 https://github.com/w3c/pointerevents/issues/216
- swyx 8y agothere are any number of pointer events polyfills (https://www.google.com/search?q=pointer+polyfill https://www.google.com/search?q=pointer+polyfill). it's not react's fault. this feature will still be there if/when safari gets with the program!