Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move resizing into timebar because it already does containerWidth cal…

…culations [#566]
  • Loading branch information...
commit eeb63da9f4c67009e6cecbb909e7e0859dce5e3e 1 parent 445a317
Jon Buckley jbuck authored
Showing with 3 additions and 5 deletions.
  1. +0 −2  src/timeline/scrubber.js
  2. +3 −3 src/timeline/timebar.js
2  src/timeline/scrubber.js
View
@@ -193,8 +193,6 @@ define( [], function(){
setNodePosition();
}; //update
- window.addEventListener( "resize", _this.update, false );
-
function checkMedia(){
setNodePosition();
} //checkMedia
6 src/timeline/timebar.js
View
@@ -106,9 +106,9 @@ define( [ "util/lang", "./scrubber" ], function( util, Scrubber ) {
_scrubber.update( containerWidth, zoom );
}
- _tracksContainer.element.addEventListener( "scroll", function() {
- drawTicks();
- }, false );
+ _tracksContainer.element.addEventListener( "scroll", drawTicks, false );
+
+ window.addEventListener( "resize", drawTicks, false );
this.update = function( zoom ) {
drawTicks( zoom );
Please sign in to comment.
Something went wrong with that request. Please try again.