Skip to content

Commit

Permalink
Changed mobile event from 'tap' to 'touchend'. This should fix exampl…
Browse files Browse the repository at this point in the history
…es for Android and iPad. (googleads#248)
  • Loading branch information
shawnbuso authored Jul 26, 2016
1 parent a83050c commit f656df0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/advanced/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var Ads = function() {
if (navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i)) {
startEvent = 'tap';
startEvent = 'touchend';
}
this.player.one(startEvent, this.bind(this, this.init));

Expand Down
2 changes: 1 addition & 1 deletion examples/playlist/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ var Ads = function() {
if (navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i)) {
startEvent = 'tap';
startEvent = 'touchend';
}
this.player.one(startEvent, this.bind(this, this.init));

Expand Down
2 changes: 1 addition & 1 deletion examples/simple/ads.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ var startEvent = 'click';
if (navigator.userAgent.match(/iPhone/i) ||
navigator.userAgent.match(/iPad/i) ||
navigator.userAgent.match(/Android/i)) {
startEvent = 'tap';
startEvent = 'touchend';
}

player.one(startEvent, function() {
Expand Down

0 comments on commit f656df0

Please sign in to comment.