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

Side by Side Diff: sky/framework/sky-scrollable.sky

Issue 881093003: Normalize import paths for Sky modules (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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 unified diff | Download patch
OLDNEW
1 <!-- 1 <!--
2 // Copyright 2015 The Chromium Authors. All rights reserved. 2 // Copyright 2015 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 --> 5 -->
6 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> 6 <import src="sky-element/sky-element.sky" as="SkyElement" />
7 <import src="/sky/framework/fling-curve.sky" as="FlingCurve" /> 7 <import src="fling-curve.sky" as="FlingCurve" />
8 8
9 <sky-element 9 <sky-element
10 name="sky-scrollable" 10 name="sky-scrollable"
11 on-gesturescrollstart="handleScrollStart_" 11 on-gesturescrollstart="handleScrollStart_"
12 on-gesturescrollend="handleScrollEnd_" 12 on-gesturescrollend="handleScrollEnd_"
13 on-gesturescrollupdate="handleScrollUpdate_" 13 on-gesturescrollupdate="handleScrollUpdate_"
14 on-gestureflingstart="handleFlingStart_" 14 on-gestureflingstart="handleFlingStart_"
15 on-gestureflingcancel="handleFlingCancel_" 15 on-gestureflingcancel="handleFlingCancel_"
16 on-wheel="handleWheel_"> 16 on-wheel="handleWheel_">
17 <template> 17 <template>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 handleFlingCancel_(event) { 122 handleFlingCancel_(event) {
123 this.stopFling_(); 123 this.stopFling_();
124 } 124 }
125 125
126 handleWheel_(event) { 126 handleWheel_(event) {
127 this.scrollBy(-event.offsetY); 127 this.scrollBy(-event.offsetY);
128 } 128 }
129 }.register(); 129 }.register();
130 </script> 130 </script>
131 </sky-element> 131 </sky-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698