-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hammerjs_2.x Exception #17
Comments
Hi @vko-online, thanks for filing this. I think it may be a Hammer.js version issue. Hammer v2.x is implemented very differently-- could you please try swapping the version included in the Tremulajs demo to see if the issue clears up? Please let me know how that goes... Best, GS |
You are right @garris . |
Just curious, did you happen to try hammer 1.1.3? I think that would probably work as designed. And yes, I will hopefully find time soon to update TremulaJS to work with the latest 2.x version. Anyhow I hope you can still implement your project without the latest hammerjs version. I will update the release when I get the chance to make the compatibility fix. Thanks again for filing the bug! |
Also, //$.extend()
var __extends = function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
};
//$.each()
array.forEach(iterator, fn)
//$()
document.querySelector(), getById/Class
//$().addClass()
var d = document.getElementById("div1");
d.className = d.className + " otherclass";
//$().parent()
var d = document.getElementById("div1");
d.parentNode
//http://stackoverflow.com/questions/507138/how-do-i-add-a-class-to-a-given-element#comment321539_507157
//Dragging in many thousands of lines of framework for a one-liner is not sensible. – bobince
|
Great analysis! Very true on all accounts. These are all things which would make TremulaJS much more attractive to AngularJS developers ( and I like angular ). I also think these optimizations are easily done by any JS developer and requires no specialized geometry or animation knowledge. Also, the Bėzier lib is very very small and can be built in. I would love to see this done. It is probably a good few hours of work -- I am sure there would be some happy Angular UI people... |
Hammer.js 2.0 changed it's API and that's why you are seeing issues. There is no drag event in Hammer.js 2.0.4 as there is a native drag and drop API, instead you would use pan events http://hammerjs.github.io/recognizer-pan/. |
Uncaught TypeError: Cannot read property 'stopDetect' of undefined
when dragging, inev
doesn't have propertygesture
in 'swipe***' case.ev.gesture.stopDetect();
causes errorcopied from tremula codepen demo
Maybe
hammer.js
events not attached to DOM?The text was updated successfully, but these errors were encountered: