Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
This fixes PolymerElements#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.
  • Loading branch information
felvhage committed Jun 1, 2016
1 parent 39d485e commit 247ef9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paper-tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 247ef9d

Please sign in to comment.