Commit 427f1184 by jmclaus

Merge pull request #1150 from edx/jmclaus/bugfix_outline_mouseover_first_caption

First caption does not display outline on initial mouseover.
parents 577749ff ebcb134c
...@@ -345,8 +345,8 @@ function () { ...@@ -345,8 +345,8 @@ function () {
// Keeps track of where the focus is situated in the array of captions. // Keeps track of where the focus is situated in the array of captions.
// Used to implement the automatic scrolling behavior and decide if the // Used to implement the automatic scrolling behavior and decide if the
// outline around a caption has to be hidden or shown on a mouseenter or // outline around a caption has to be hidden or shown on a mouseenter or
// mouseleave. // mouseleave. Initially, no caption has the focus, set the index to -1.
this.videoCaption.currentCaptionIndex = 0; this.videoCaption.currentCaptionIndex = -1;
// Used to track if the focus is coming from a click or tabbing. This // Used to track if the focus is coming from a click or tabbing. This
// has to be known to decide if, when a caption gets the focus, an // has to be known to decide if, when a caption gets the focus, an
// outline has to be drawn (tabbing) or not (mouse click). // outline has to be drawn (tabbing) or not (mouse click).
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment