ng2draggable icon indicating copy to clipboard operation
ng2draggable copied to clipboard

ReferenceError: TouchEvent is not defined

Open lrabuffetti opened this issue 7 years ago • 1 comments

I get this error when I add the directive.

ReferenceError: TouchEvent is not defined

image

lrabuffetti avatar Feb 07 '18 15:02 lrabuffetti

I ran into this problem with Safari. I ended up copying the ng2-draggable.directive.ts file over to my source code and imported it as a regular directive. Every line that had event:TouchEvent, I changed to event: TouchEvent | any.

This has worked for me.

Edit: This might not work for you since the Safari error was something like unknown variable TouchEvent

yuriy-nyllabs avatar Feb 13 '18 18:02 yuriy-nyllabs