Hi there,
You can always add a callback function to the original event that you are adding. And then reference that when you are removing the event.
For example, adding an event:
const click = async (e) => {
console.log('click');
};
documentViewer.addEventListener('click', click);
Removing the event:
documentViewer.removeEventListener('click', click)
Best regards,
Kevin Kim