Skip to content

Instantly share code, notes, and snippets.

@aduston
Created October 18, 2011 20:53
Show Gist options
  • Save aduston/1296691 to your computer and use it in GitHub Desktop.
Save aduston/1296691 to your computer and use it in GitHub Desktop.
unisubs.streamer.StreamBox.prototype.scrollIntoView_ = function(streamSub) {
if (this.ignoreVideoScrolling_) {
return;
}
this.videoScrolling_ = true;
console.log('scrolling into container view');
goog.style.scrollIntoContainerView(
streamSub.getSpan(), this.transcriptElem_, true);
goog.Timer.callOnce(
function() {
this.videoScrolling_ = false;
console.log('videoScrolling_ false');
}, null, this);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment