beicon
beicon copied to clipboard
Add ability to pass options to addEventListener in from-event
This PR
- Extends
from-eventto accept an optional third arg with options foraddEventListener. This is useful e.g. to listen to wheel events in a non-passive way so as to be able to stop them from propagating. - Adds a unit test (although I wonder about the usefulness of such a test given that the target is mocked... 🤷🏽)