From ef30da3cba913c8e5071941dd56d05401f5e40ce Mon Sep 17 00:00:00 2001 From: frankiefu Date: Wed, 12 Nov 2014 11:01:01 -0800 Subject: [PATCH] add "scroller" property which returns the scrollable element on the main area. --- core-scaffold.html | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/core-scaffold.html b/core-scaffold.html index f192698..d789b19 100644 --- a/core-scaffold.html +++ b/core-scaffold.html @@ -209,29 +209,39 @@ }, /** - * Toggle the drawer panel - * @method togglePanel - */ + * Toggle the drawer panel + * @method togglePanel + */ togglePanel: function() { this.$.drawerPanel.togglePanel(); }, /** - * Open the drawer panel - * @method openDrawer - */ + * Open the drawer panel + * @method openDrawer + */ openDrawer: function() { this.$.drawerPanel.openDrawer(); }, /** - * Close the drawer panel - * @method closeDrawer - */ + * Close the drawer panel + * @method closeDrawer + */ closeDrawer: function() { this.$.drawerPanel.closeDrawer(); }, + /** + * Returns the scrollable element on the main area. + * + * @property scroller + * @type Object + */ + get scroller() { + return this.$.headerPanel.scroller; + }, + scroll: function(e) { this.fire('scroll', {target: e.detail.target}, this, false); }