Uncaught TypeError: Cannot read property 'left' of undefined
george-lemish opened this issue · 4 comments
george-lemish commented
U use the offset property of element, but the document element offset = undefined. So I get errors whe make $(document).enableTouch({useMouse: true});
ajlkn commented
I'll look into it. Out of curiosity, any reason why you're using document over body?
george-lemish commented
I use jquery.touch.js with jquery touch punch for adaptation all mouse events to mobile devices and adaptation jquery ui draggable.
If I apply enableTouch() to body, document scrooling when I drag elements, but if apply to document it not scrool.
ajlkn commented
Alright, I'll incorporate a workaround for when enableTouch() is called on document.
ajlkn commented
Probably fixed in v1.0.0.