src/js/widgets/createAnnotationWidget.js
branchpopcorn-port
changeset 645 0c8ca890c9f1
parent 643 3e522b6f7bd0
child 651 c43441822b1b
--- a/src/js/widgets/createAnnotationWidget.js	Mon Jan 16 17:27:23 2012 +0100
+++ b/src/js/widgets/createAnnotationWidget.js	Tue Jan 17 11:00:33 2012 +0100
@@ -271,10 +271,10 @@
     }
   } else {
     var duration = +this._serializer.currentMedia().meta["dc:duration"];    
-    annotation["begin"] = +((duration * (this.sliceLeft / this.selector.width())).toFixed(0));
-    annotation["end"] = +((duration * ((this.sliceWidth + this.sliceLeft) / this.selector.width())).toFixed(0));
+    annotation["begin"] = +((duration * (this.sliceLeft / 100)).toFixed(0));
+    annotation["end"] = +((duration * ((this.sliceWidth + this.sliceLeft) / 100)).toFixed(0));
   }
-
+  
   annotation["type"] = this._serializer.getContributions();
   if (typeof(annotation["type"]) === "undefined")
     annotation["type"] = "";