Temporarily Disable Touch Events

I have a third party component that uses touch interaction and I would like to render this within a template view. The problem is the library doesn’t see any of the touch events presumably because DHTMLx touch is intercepting these events first.

Is there a workaround for this scenario?

Thanks,
James

Just found the following functions which work perfectly.

dhx.Touch.disable();
/* use the third party widget */
dhx.Touch.enable();

Thanks,
James