Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3155)

Unified Diff: sky/examples/city-list/city-list.sky

Issue 758753003: Add auto-scroll option to sky city-list example (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ws Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sky/examples/city-list/index.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/city-list/city-list.sky
diff --git a/sky/examples/city-list/city-list.sky b/sky/examples/city-list/city-list.sky
index c1ecc67aa844fea88b3e137e7b89d7521e73f5a6..f89cad77fc524a417f5c8537cc54e44b29d14dc8 100644
--- a/sky/examples/city-list/city-list.sky
+++ b/sky/examples/city-list/city-list.sky
@@ -599,6 +599,11 @@ SkyElement({
return;
this.updateView(this.loader.getItems(), true);
+ },
+
+ scrollBy: function(amount) {
+ this.scrollerElement.scrollTop += amount;
+ this.handleScroll({ target: this.scrollerElement });
}
});
« no previous file with comments | « no previous file | sky/examples/city-list/index.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698