ajlkn/jquery.touch

Uncaught TypeError: Cannot read property 'left' of undefined

george-lemish opened this issue · 4 comments

U use the offset property of element, but the document element offset = undefined. So I get errors whe make $(document).enableTouch({useMouse: true});

I'll look into it. Out of curiosity, any reason why you're using document over body?

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.

Alright, I'll incorporate a workaround for when enableTouch() is called on document.

ajlkn commented

Probably fixed in v1.0.0.