Skip to content

Instantly share code, notes, and snippets.

@sjl
Forked from aduston/gist:1296656
Created October 18, 2011 20:50
Show Gist options
  • Save sjl/1296686 to your computer and use it in GitHub Desktop.
Save sjl/1296686 to your computer and use it in GitHub Desktop.
unisubs.streamer.StreamBox.prototype.transcriptScrolled_ = function(e) {
if (this.videoScrolling_) {
this.videoScrolling_ = false;
} else {
this.showResyncButton_(true);
this.ignoreVideoScrolling_ = true;
}
};
unisubs.streamer.StreamBox.prototype.scrollIntoView_ = function(streamSub) {
if (this.ignoreVideoScrolling_) {
return;
}
this.videoScrolling_ = true;
goog.style.scrollIntoContainerView(
streamSub.getSpan(), this.transcriptElem_, true);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment