Override component events
TLDR: I used
On Chrome Mobile, the
onContextMenu in a lot of components. Is there anyway to override and apply custom logic to that event without changing much code?On Chrome Mobile, the
onContextMenu event fires when you press and hold on an element. on Safari mobile, It doesn't work, so I have to apply custom logic. But currently I have a lot of components where I have already used onContextMenu. Is there anyway to apply custom logic to onContextMenu without changing much code?