Skip to content

Commit

Permalink
Merge pull request #1034 from kaltura/FEC-2088
Browse files Browse the repository at this point in the history
#FEC-2088 #comment fix for iOS8 pageShow and focus event - done button  ...
  • Loading branch information
MichalRadwantzor committed Oct 2, 2014
2 parents 89b8370 + 1692925 commit 49ba63e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion modules/DoubleClick/resources/mw.DoubleClick.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@
getTime();
} else {
var eventName = 'focus.doubleClickMobileEvent';
if( mw.isIOS() ) {
if( _this.isPageshowEventSupported() && mw.isIOS() ) {
eventName = 'pageshow.doubleClickMobileEvent';
}
_this.adClickEvent = eventName;
Expand Down Expand Up @@ -869,6 +869,15 @@
},'adsLoadError', true);

},

isPageshowEventSupported: function() {
if( mw.isIOS8() ) {
return false;
}

return true;
},

getPlayerSize: function(){
return {
'width': this.embedPlayer.getVideoHolder().width(),
Expand Down

0 comments on commit 49ba63e

Please sign in to comment.