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

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

Issue 947303003: Fix subtle bugs in sky-scrollable (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
« no previous file with comments | « sky/framework/sky-drawer.sky ('k') | sky/viewer/converters/input_event_types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-element.sky" /> 6 <import src="sky-element.sky" />
7 7
8 <sky-element> 8 <sky-element>
9 <template> 9 <template>
10 <style> 10 <style>
11 :host { 11 :host {
12 overflow: hidden; 12 overflow: hidden;
13 position: relative; 13 position: relative;
14 will-change: transform;
14 } 15 }
15 #scrollable { 16 #scrollable {
16 will-change: transform; 17 will-change: transform;
17 } 18 }
18 #vbar { 19 #vbar {
19 position: absolute; 20 position: absolute;
20 right: 0; 21 right: 0;
21 width: 3px; 22 width: 3px;
22 background-color: lightgray; 23 background-color: lightgray;
23 pointer-events: none; 24 pointer-events: none;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 128 }
128 129
129 void _handleWheel(WheelEvent event) { 130 void _handleWheel(WheelEvent event) {
130 scrollBy(-event.offsetY); 131 scrollBy(-event.offsetY);
131 } 132 }
132 } 133 }
133 134
134 _init(script) => register(script, SkyScrollable); 135 _init(script) => register(script, SkyScrollable);
135 </script> 136 </script>
136 </sky-element> 137 </sky-element>
OLDNEW
« no previous file with comments | « sky/framework/sky-drawer.sky ('k') | sky/viewer/converters/input_event_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698