From 3d6aaa1cf373cfaa9c142ed500c23de9352e1f7b Mon Sep 17 00:00:00 2001 From: bostondevin Date: Tue, 16 Dec 2014 10:59:45 -0500 Subject: [PATCH] Add a scroll event Adding a scroll event so we can do things with the scroller position on-scroll="{{scrollHandler}}" --- paper-dropdown.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/paper-dropdown.html b/paper-dropdown.html index 07e2590..c928f8b 100644 --- a/paper-dropdown.html +++ b/paper-dropdown.html @@ -109,9 +109,21 @@ ready: function() { this.super(); this.sizingTarget = this.$.scroller; + }, + + domReady: function() { + this.async('scroll'); + }, + + get scroller() { + return this.$.scroller; + }, + + scroll: function() { + this.fire('scroll', {target: this.scroller}, this, false); } }); - \ No newline at end of file +