$(document).bind 'touchstart', (event) -> console.log event.touches
It is always undefined, I can not understand why. Like targetTouches .
targetTouches
Any ideas? I am testing an iPad.
Thanks.
Your syntax looks strange to me, but in plain javascript:
$(document).bind('touchstart', function(event) { console.log(event.originalEvent.touches); });
Source: https://habr.com/ru/post/900252/More articles:Why are these two parameters in jQuery source? - javascriptCan someone interpret this line of code? - c #EWS. How to get the latest version of SyncState without initial synchronization? - synchronizationLLVM-based compiler language - compiler-constructionIs there a jQuery or JavaScript module that creates the SQL query builder interface? - javascriptMethod in companion compiled into static methods in scala? - scalahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/900254/deny-direct-access-to-file-on-s3&usg=ALkJrhilcsXQh7sA5MpUrZrdcLHNgLsT1AProblem with Modal View Controllers and defines PresentationContext - objective-cThe best way to inflate browsing programmatically - androidChange default data theme from jQuery Mobile - javascriptAll Articles