From cc798a5ff6ac1271548f26f13f430878efde8d10 Mon Sep 17 00:00:00 2001 From: felvhage Date: Wed, 1 Jun 2016 12:18:29 +0200 Subject: [PATCH] Fixes #168, scrollbutton glitch This fixes #168. When using Browser-Zoom scrollLeft can be a decimal number. Using Math.ceil on scrollLeft will ensure that the condition will be met in this case and the rightHidden will be set properly. --- paper-tabs.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-tabs.html b/paper-tabs.html index ae2c1b8..adf4d2c 100644 --- a/paper-tabs.html +++ b/paper-tabs.html @@ -511,7 +511,7 @@ var scrollLeft = this.$.tabsContainer.scrollLeft; this._leftHidden = scrollLeft === 0; - this._rightHidden = scrollLeft === this._tabContainerScrollSize; + this._rightHidden = Math.ceil(scrollLeft) >= this._tabContainerScrollSize; }, _onLeftScrollButtonDown: function() {