Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Seek time doesn't match filmstrip timecode #131

Merged
merged 2 commits into from
May 22, 2017
Merged

Fix: Seek time doesn't match filmstrip timecode #131

merged 2 commits into from
May 22, 2017

Conversation

bhh1988
Copy link
Contributor

@bhh1988 bhh1988 commented May 22, 2017

Previously, hovering over a time in the scrubber to seek to that point
would display a timecode that doesn't match the actual time that the
seek would take you to. This was more apparent in longer videos. For
example, hovering over 10:00 in a 1hr video, and clicking at that point
would actually take you to 9:30. This was due to two different ways the
timecodes (the filmstrip timecode versus the seeked timecode) were
calculated.

return Math.max(Math.min(relPos, MAX_VALUE), MIN_VALUE);
}

/**
* Calculates the position of the scrubber handle based on mouse action
*
* @private
* @param {Event} event - the instance of the class
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix this JSDoc while you're in here? Instance of the class doesn't seem right

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Bryan Huh and others added 2 commits May 22, 2017 16:01
Previously, hovering over a time in the scrubber to seek to that point
would display a timecode that doesn't match the actual time that the
seek would take you to. This was more apparent in longer videos. For
example, hovering over 10:00 in a 1hr video, and clicking at that point
would actually take you to 9:30. This was due to two different ways the
timecodes (the filmstrip timecode versus the seeked timecode) were
calculated.
@bhh1988 bhh1988 merged commit fb1fdd0 into box:master May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants