Use event.target instead of finding an element by point