Skip to content

Commit

Permalink
Merge pull request #39 from PolymerElements/fix-event
Browse files Browse the repository at this point in the history
Fix #38
  • Loading branch information
blasten committed Aug 13, 2015
2 parents 63d4c9c + af2a03c commit 3b07d67
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions paper-scroll-header-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -480,12 +480,8 @@
},

_condensesChanged: function() {
if (this.condenses) {
this._scroll();
} else {
// reset transform/opacity set on the header
this._condenseHeader(null);
}
this._updateScrollState(this.scroller.scrollTop);
this._condenseHeader(null);
},

_setup: function() {
Expand Down Expand Up @@ -558,14 +554,12 @@
if (this.header) {
this._updateScrollState(this.scroller.scrollTop);

if (event) {
this.fire('content-scroll', {
target: this.scroller
},
{
cancelable: false
});
}
this.fire('content-scroll', {
target: this.scroller
},
{
cancelable: false
});
}
},

Expand All @@ -588,7 +582,7 @@
this._setHeaderState(this.HEADER_STATE_INTERPOLATED);
}

if (!event || !this.fixed && y !== this._y) {
if (!this.fixed && y !== this._y) {
this._transformHeader(y);
}

Expand Down

0 comments on commit 3b07d67

Please sign in to comment.