|
@ -12,8 +12,7 @@ require([ "domReady!", "mobile", "hammer", "jquery", "util" ], function(doc, Mob
|
12
|
12
|
});
|
13
|
13
|
jQuery(".rotate").on("rotate",function(e) {
|
14
|
14
|
var rotation = currentRotation + Math.round(liveScale* e.originalEvent.gesture.rotation);
|
15
|
|
$(this).find("img").css("transform", "rotate( " + rotation + "deg)");
|
16
|
|
console.log("rotation = " + rotation);
|
|
15
|
jQuery(this).find("img").css("transform", "rotate( " + rotation + "deg)");
|
17
|
16
|
});
|
18
|
17
|
jQuery(".rotate").on("rotateend", function(e) {
|
19
|
18
|
currentRotation += Math.round(e.originalEvent.gesture.rotation);
|