I want to handle events at the document level, but your stopEvent() function is extremely aggressive. Could you preventDefault without stopping propagation? Do you even need to preventDefault since the elements are all spans, it shouldn't have any default effect.
Otherwise, I don't really understand why you need to stop the event from progressing normally.
Thanks!
I want to handle events at the document level, but your stopEvent() function is extremely aggressive. Could you preventDefault without stopping propagation? Do you even need to preventDefault since the elements are all spans, it shouldn't have any default effect.
Otherwise, I don't really understand why you need to stop the event from progressing normally.
Thanks!