Skip to content

Commit

Permalink
#FEC-2088 #comment fix for iOS8 pageShow and focus event - done butto…
Browse files Browse the repository at this point in the history
…n #time 1h
  • Loading branch information
Eliza Sapir committed Oct 2, 2014
1 parent 23d5de2 commit 1692925
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 @@ -591,7 +591,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 @@ -867,6 +867,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 1692925

Please sign in to comment.