src/js/widgets/segmentsWidget.js
branchno-popcorn
changeset 392 ef4e6b0fec17
parent 380 4b74494bd129
child 418 06d2aa32c5f4
equal deleted inserted replaced
391:0a68395f7e12 392:ef4e6b0fec17
   127   }
   127   }
   128 };
   128 };
   129 
   129 
   130 IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) {
   130 IriSP.SegmentsWidget.prototype.clickHandler = function(annotation) {
   131   var begin = (+ annotation.begin) / 1000;
   131   var begin = (+ annotation.begin) / 1000;
   132   this._Popcorn.currentTime(Math.floor(begin));
   132   this._Popcorn.currentTime(Math.round(begin));
   133 };
   133 };
   134 
   134 
   135 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {
   135 IriSP.SegmentsWidget.prototype.searchHandler = function(searchString) {
   136 
   136 
   137   if (searchString == "")
   137   if (searchString == "")