@@ -273,7 +273,7 @@ function mouseMoveTime(x, width) {
273273 var textPxLength = timeBar . canvasContext . measureText ( text ) ;
274274
275275
276- if ( x > 0 && x < timeBar . canvas . width )
276+ if ( x >= 0 && x < timeBar . canvas . width )
277277 {
278278 timeBar . canvasContext . beginPath ( ) ;
279279 timeBar . canvasContext . moveTo ( x , timeBar . canvas . height / 2 ) ;
@@ -284,13 +284,13 @@ function mouseMoveTime(x, width) {
284284 if ( width != null ) {
285285 if ( ( ( width < 0 ) ? - width : width ) >= 64 ) {
286286 timeBar . canvasContext . fillText ( pixelToTime ( ( width < 0 ) ? - width : width ) , ( x + ( width / 2 ) ) , ( timeBar . canvas . height - 14 ) , ( ( ( width < 0 ) ? - width : width ) - 4 ) ) ;
287- console . log ( width ) ;
288287 }
289288
290289 timeBar . canvasContext . fillStyle = '#ffffff' ;
291290 timeBar . canvasContext . fillRect ( x + width - textPxLength . width / 2 , 2 , textPxLength . width + 2 , 12 ) ;
292- timeBar . canvasContext . fillStyle = "#000000" ;
293- timeBar . canvasContext . fillText ( pixelToTime ( x + width ) , x + width , 3 ) ;
291+
292+ //timeBar.canvasContext.fillStyle = "#000000";
293+ //timeBar.canvasContext.fillText(pixelToTime(x+width), x+width,3 );
294294
295295 timeBar . canvasContext . beginPath ( ) ;
296296 timeBar . canvasContext . moveTo ( ( x + width ) , timeBar . canvas . height / 2 ) ;
@@ -303,15 +303,15 @@ function mouseMoveTime(x, width) {
303303 }
304304 else
305305 {
306- if ( x < 0 )
306+ if ( x < 0 )
307307 {
308308 timeBar . canvasContext . beginPath ( ) ;
309309 timeBar . canvasContext . moveTo ( 0 , timeBar . canvas . height / 2 ) ;
310310 timeBar . canvasContext . lineTo ( 0 , timeBar . canvas . height ) ;
311311 timeBar . canvasContext . closePath ( ) ;
312312 timeBar . canvasContext . stroke ( ) ;
313313 }
314- else if ( x > timeBar . canvas . width )
314+ else if ( x > timeBar . canvas . width )
315315 {
316316 timeBar . canvasContext . beginPath ( ) ;
317317 timeBar . canvasContext . moveTo ( timeBar . canvas . width , timeBar . canvas . height / 2 ) ;
0 commit comments