We have a specific issue with events in react, which is related to different event types being available on different devices and browsers. Currently, we have to attach multiple events on each component to fill the gap, such as onMouseMove
, onTouchMove
, etc.
The new PointerEvents are supposed to solve this, but they are not available in older browsers, which means we cannot use them.
Is it possible to somehow create our own event type, which we attach to our react components, which handles this logic in the background?
<Element onCustomEvent={...} />
Thanks!