IsraelZablianov / draggable-vue-directive

Vue2 directive that handles drag & drop
MIT License
314 stars 50 forks source link

Error in directive draggable bind hook: "ReferenceError: 'TouchEvent' is undefined" #46

Open drew-forsberg opened 4 years ago

drew-forsberg commented 4 years ago

I've been using your draggable directive on a reporting page and really appreciate how easy it is to use. Unfortunately, most of our users are still using IE 11 (I know, I know...). Just noticed that your directive raises this error in IE 11 on page load:

Error in directive draggable bind hook: "ReferenceError: 'TouchEvent' is undefined"

The good news is that it doesn't seem to be a breaking error. The elements that use your directive are still draggable with no issues. But you might want to see if there's a way to gracefully prevent that error. Thanks!

kurtjmeyoung commented 4 years ago

I think this problem will be resolved through my PR, which still isn't merged:

https://github.com/IsraelZablianov/draggable-vue-directive/pull/43

drew-forsberg commented 4 years ago

Many thanks!