Re:Intent to Implement: Pointer Events in Chrome
by mbrubeck on Wednesday March 25, 2015 @04:56PM
(#9265860)
DOM events do form an inheritance hierarchy. For example, TouchEvent and MouseEvent both inherit from UIEvent.
But for compatibility reasons, we can't make arbitrary changes to legacy APIs. So rather than, say, change MouseEvent to be a subtype of PointerEvent, we have to do the reverse and have PointerEvent extend MouseEvent.
But for compatibility reasons, we can't make arbitrary changes to legacy APIs. So rather than, say, change MouseEvent to be a subtype of PointerEvent, we have to do the reverse and have PointerEvent extend MouseEvent.