Merge pull request #1267 from gurupras/issue-858
Ensure custom handlers are called on container clicks that trigger togglePlay or restart
This commit is contained in:
commit
2bbebd811b
@ -386,10 +386,10 @@ class Listeners {
|
||||
}
|
||||
|
||||
if (player.ended) {
|
||||
player.restart();
|
||||
player.play();
|
||||
this.proxy(event, player.restart, 'restart');
|
||||
this.proxy(event, player.play, 'play');
|
||||
} else {
|
||||
player.togglePlay();
|
||||
this.proxy(event, player.togglePlay, 'play');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user