Get event from d3, firefox does not support window.event

(cherry picked from commit bbcd70fc16f2e1cec8e7df4ac7125d043ec7a968)