Skip to content

Commit

Permalink
Fix bug that required two Escapes to close popup windows
Browse files Browse the repository at this point in the history
  • Loading branch information
terrill committed Mar 4, 2020
1 parent 250c8da commit bee2fa7
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions build/ableplayer.dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -13110,7 +13110,8 @@ if (thisObj.useTtml && (trackSrc.endsWith('.xml') || trackText.startsWith('<?xml

AblePlayer.prototype.endDrag = function(which) {

var $window, $windowPopup, $windowButton;
var thisObj, $window, $windowPopup, $windowButton;
thisObj = this;

if (which === 'transcript') {
$windowPopup = this.$transcriptPopup;
Expand Down Expand Up @@ -13147,7 +13148,7 @@ if (thisObj.useTtml && (trackSrc.endsWith('.xml') || trackText.startsWith('<?xml
// However, in case that's not reliable in some browsers
// need to ensure this gets cancelled
setTimeout(function() {
this.finishingDrag = false;
thisObj.finishingDrag = false;
}, 100);
};

Expand Down
5 changes: 3 additions & 2 deletions build/ableplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -13110,7 +13110,8 @@ console.log('You pushed ESC');

AblePlayer.prototype.endDrag = function(which) {

var $window, $windowPopup, $windowButton;
var thisObj, $window, $windowPopup, $windowButton;
thisObj = this;

if (which === 'transcript') {
$windowPopup = this.$transcriptPopup;
Expand Down Expand Up @@ -13147,7 +13148,7 @@ console.log('You pushed ESC');
// However, in case that's not reliable in some browsers
// need to ensure this gets cancelled
setTimeout(function() {
this.finishingDrag = false;
thisObj.finishingDrag = false;
}, 100);
};

Expand Down
4 changes: 2 additions & 2 deletions build/ableplayer.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ableplayer",
"version": "4.2.26",
"version": "4.2.27",
"description": "fully accessible HTML5 media player",
"homepage": "http://ableplayer.github.io/ableplayer",
"bugs": "https://github.com/ableplayer/ableplayer/issues",
Expand Down
5 changes: 3 additions & 2 deletions scripts/dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,8 @@

AblePlayer.prototype.endDrag = function(which) {

var $window, $windowPopup, $windowButton;
var thisObj, $window, $windowPopup, $windowButton;
thisObj = this;

if (which === 'transcript') {
$windowPopup = this.$transcriptPopup;
Expand Down Expand Up @@ -698,7 +699,7 @@
// However, in case that's not reliable in some browsers
// need to ensure this gets cancelled
setTimeout(function() {
this.finishingDrag = false;
thisObj.finishingDrag = false;
}, 100);
};

Expand Down

0 comments on commit bee2fa7

Please sign in to comment.