Zach Cardoza Profile Picture

Posts related to typescript

  • Handling mouse and touch events uniformly

    On the surface, it would seem that a browser would treat a touch even just like a mouse event, but if you've worked in cross-platform development using web technologies you have likely discovered that this is not the case. On a mobile device, the touch event is fired immediately, however, it does not fire a click event until `300ms` after the touch which means your users are seeing a delay with every press. The solution is straight forward and frees you to explore more powerful user experiences.

  • Web USB device detection and permission

    Web USB offers a a great way to bridge the gap between hardware based systems and the modern web ecosystem. Whether it's legacy hardware that is being brought into the connected world, or home brew hardware for solving a problem, this article is the first step in building a reliable interface utilizing Web USB.