Merge pull request #18431 from jerrybox/master

fix: closed caption can't move when mutiple videos in one page.
This commit is contained in:
Farhanah Sheets
2018-11-07 08:46:30 -05:00
committed by GitHub

View File

@@ -1230,7 +1230,7 @@
},
listenForDragDrop: function() {
var captions = document.querySelector('.closed-captions');
var captions = this.captionDisplayEl['0'];
if (typeof Draggabilly === 'function') {
new Draggabilly(captions, {containment: true});