6 lines
133 B
JavaScript
6 lines
133 B
JavaScript
|
export default function(event) {
|
||
|
let sourceEvent;
|
||
|
while (sourceEvent = event.sourceEvent) event = sourceEvent;
|
||
|
return event;
|
||
|
}
|