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

Unified Diff: sky/examples/color/color-wheel.sky

Issue 897683002: Extend the sky color picker example (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: sky/examples/color/color-wheel.sky
diff --git a/sky/examples/color/color-wheel.sky b/sky/examples/color/color-wheel.sky
index be053749d20da63a7128ee1325faad94433fa021..f970863513c80e301368bd975d9c2035920044b3 100644
--- a/sky/examples/color/color-wheel.sky
+++ b/sky/examples/color/color-wheel.sky
@@ -7,8 +7,7 @@
<sky-element name="color-wheel"
attributes="color:string"
- on-pointerdown="handlePointerDown"
- on-pointermove="handlePointerMove">
+ on-pointerdown="handlePointerDown">
<template>
<style>
img {
@@ -65,6 +64,7 @@ module.exports = class extends SkyElement {
created() {
super.created();
this.color = "#xFF00FF";
+ this.colorChanged = function(){};
}
updateColor(event) {
var bounds = event.target.getBoundingClientRect();
@@ -78,9 +78,6 @@ module.exports = class extends SkyElement {
handlePointerDown(event) {
this.updateColor(event);
}
- handlePointerMove(event) {
- this.updateColor(event);
- }
}.register();
</script>
</sky-element>
« sky/examples/color/color-picker.sky ('K') | « sky/examples/color/color-samples.sky ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698