From 7749a034e87107858aba4b93329e975392f7cbbe Mon Sep 17 00:00:00 2001 From: Russell Bicknell Date: Wed, 18 Nov 2020 13:08:39 -0800 Subject: [PATCH 1/2] Ignore any "track" events which occur before "start". Co-authored-by: Phil Harnish --- app-drawer/app-drawer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app-drawer/app-drawer.js b/app-drawer/app-drawer.js index 0bf930b1..d4453670 100644 --- a/app-drawer/app-drawer.js +++ b/app-drawer/app-drawer.js @@ -368,6 +368,11 @@ Polymer({ }, _trackMove: function(event) { + if (!this._trackDetails) { + // Ignore any "track" events which occur before "start". + return; + } + this._translateDrawer(event.detail.dx + this._translateOffset); // Use Date.now() since event.timeStamp is inconsistent across browsers From 18a8aab48fe93c7d3fba9f0ef09fc0fb753a46e6 Mon Sep 17 00:00:00 2001 From: Russell Bicknell Date: Fri, 4 Dec 2020 13:00:48 -0800 Subject: [PATCH 2/2] Ignore any "track" events which occur before "start" in `_trackEnd`. Co-authored-by: Phil Harnish --- app-drawer/app-drawer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app-drawer/app-drawer.js b/app-drawer/app-drawer.js index d4453670..6e3db621 100644 --- a/app-drawer/app-drawer.js +++ b/app-drawer/app-drawer.js @@ -381,6 +381,11 @@ Polymer({ }, _trackEnd: function(event) { + if (!this._trackDetails) { + // Ignore any "track" events which occur before "start". + return; + } + var x = event.detail.dx + this._translateOffset; var drawerWidth = this.getWidth(); var isPositionLeft = this.position === 'left';