Drag event handlers accept MouseEvent instead of DragEvent as a parameter
Closed this issue · 1 comments
Porl91 commented
Drag event handlers in the 'DomElementWithEventsAttributes' class accept MouseEvent objects as parameters rather than DragEvent objects.
You can see from the spec that the DragEvent class just derives from the MouseEvent class and exposes the 'DataTransfer' property:
https://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#dragevent
I've been going dynamic in order to access the property until now. I'd expect the event handlers listed under 'Event Types' of the following page to accept DragEvent:
ProductiveRage commented