I’m currently developing a tiny “draggable for mobile widget”, basically it implements only part of the interface of the jQUery UI Draggable widget (The part I needed for my project).
I Know I can simulate the mouse events and make the jQuery UI Draggable to work properly on the mobile/tablet platforms, but the main issue with that approach is that it does not feel smooth enough, and since the CSS3 Transforms are hardware accelerated, using translate3d instead of changing the top, left properties made a huge difference as you can see here:
http://dl.dropbox.com/u/16252882/royws/td/demo/touchdraggable.html
I was planning to make it work for IE10 and latest Firefox too, so in the code I was using WebkitCSSMatrix to parse the matrix. I googled it and found that for IE10 I can use the MSCSSMatrix to parse the matrix, but I cannot find a similar class in firefox.
I’m only using now the M.e and M.f properties of the Matrix, as you can see here,
https://github.com/royriojas/touch-draggable/blob/master/src/touch-draggable.js
so I know I can parse it manually. If there is no other option, I will have to do it that way, I was just wondering if anyone knew how to do that, the easy way in firefox 🙂
So I couldn’t find the equivalent class, but here is what I used to fill the gap, It feels weird answer my own question by the way!
I only care about the M.e and M.f properties for now.
Also the regular expression was “borrowed” from TouchScroll source code!