fixed elusive bug. no-popcorn
authorhamidouk
Fri, 02 Dec 2011 15:41:39 +0100
branchno-popcorn
changeset 392 ef4e6b0fec17
parent 391 0a68395f7e12
child 393 54947acf2770
fixed elusive bug.
src/js/widgets/segmentsWidget.js
--- a/src/js/widgets/segmentsWidget.js	Fri Dec 02 12:11:23 2011 +0100
+++ b/src/js/widgets/segmentsWidget.js	Fri Dec 02 15:41:39 2011 +0100
@@ -129,7 +129,7 @@
 
 IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) {
   var begin = (+ annotation.begin) / 1000;
-  this._Popcorn.currentTime(Math.floor(begin));
+  this._Popcorn.currentTime(Math.round(begin));
 };
 
 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {