1
0
mirror of https://github.com/videojs/video.js.git synced 2025-01-02 06:32:07 +02:00

Fixe for an apparent play button state issue.

This commit is contained in:
Steve Heffernan 2010-07-21 17:17:42 -07:00
parent 6bd7473f13
commit 964163aedc

View File

@ -492,6 +492,13 @@ var VideoJS = Class.extend({
// Backup for when the user only clicks and doesn't drag
onProgressHolderMouseUp: function(event){
this.setPlayProgressWithEvent(event);
// Fixe for an apparent play button state issue.
if (this.video.paused) {
this.onPause();
} else {
this.onPlay();
}
},
// Adjust the volume when the user drags on the volume control