Skip to content

Commit

Permalink
Do not disable clicking for 3p sticky ads (#36349)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerivq committed Oct 14, 2021
1 parent 9843ab6 commit 79ce7e8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions extensions/amp-ad/0.1/amp-ad-xorigin-iframe-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,21 +195,6 @@ export class AmpAdXOriginIframeHandler {
)
);

if (this.uiHandler_.isStickyAd()) {
setStyle(iframe, 'pointer-events', 'none');
this.unlisteners_.push(
listenFor(
this.iframe,
'signal-interactive',
() => {
setStyle(iframe, 'pointer-events', 'auto');
},
true,
true
)
);
}

this.unlisteners_.push(
this.baseInstance_.getAmpDoc().onVisibilityChanged(() => {
this.sendEmbedInfo_(this.inViewport_);
Expand Down

0 comments on commit 79ce7e8

Please sign in to comment.