We convert from dom.PointerEvent to an internal ADT representation for 3 reasons:
- Sealed traits are better in match statements than raw PointerEvents which have a String
type
field. - PointerEvents are hard to create and set timestamps on in unit tests
- PointerEvents arent always supported in non-dom environments like Nodejs where we might want to test
- Companion:
- object
class Object
trait Matchable
class Any