site/node_modules/d3-selection/src/sourceEvent.js

6 lines
133 B
JavaScript
Raw Normal View History

2024-10-14 08:09:33 +02:00
export default function(event) {
let sourceEvent;
while (sourceEvent = event.sourceEvent) event = sourceEvent;
return event;
}