From 9df17e8849bbb24f0516aa74a92e0c5e266716eb Mon Sep 17 00:00:00 2001 From: gmajoulet Date: Wed, 14 Nov 2018 19:11:01 -0500 Subject: [PATCH] Cleanup the amp-story-hold-to-pause experiment. --- extensions/amp-story/1.0/page-advancement.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/extensions/amp-story/1.0/page-advancement.js b/extensions/amp-story/1.0/page-advancement.js index 05f412e137c6..aef43379b1ba 100644 --- a/extensions/amp-story/1.0/page-advancement.js +++ b/extensions/amp-story/1.0/page-advancement.js @@ -25,7 +25,6 @@ import {VideoEvents} from '../../../src/video-interface'; import {closest, escapeCssSelectorIdent, matches} from '../../../src/dom'; import {dev, user} from '../../../src/log'; import {hasTapAction, timeStrToMillis} from './utils'; -import {isExperimentOn} from '../../../src/experiments'; import {listenOnce} from '../../../src/event-helper'; /** @private @const {number} */ @@ -324,12 +323,10 @@ class ManualAdvancement extends AdvancementConfig { * @private */ startListening_() { - if (isExperimentOn(this.win_, 'amp-story-hold-to-pause')) { - this.element_ - .addEventListener('touchstart', this.onTouchstart_.bind(this), true); - this.element_ - .addEventListener('touchend', this.onTouchend_.bind(this), true); - } + this.element_ + .addEventListener('touchstart', this.onTouchstart_.bind(this), true); + this.element_ + .addEventListener('touchend', this.onTouchend_.bind(this), true); this.element_ .addEventListener( 'click', this.maybePerformNavigation_.bind(this), true);