|
@@ -65,7 +65,7 @@ fn app(cx: Scope) -> Element {
|
|
onmouseenter: move |m| q1_color.set([get_brightness(m.data), 0, 0]),
|
|
onmouseenter: move |m| q1_color.set([get_brightness(m.data), 0, 0]),
|
|
onmousedown: move |m| q1_color.set([get_brightness(m.data), 0, 0]),
|
|
onmousedown: move |m| q1_color.set([get_brightness(m.data), 0, 0]),
|
|
onmouseup: move |m| q1_color.set([get_brightness(m.data), 0, 0]),
|
|
onmouseup: move |m| q1_color.set([get_brightness(m.data), 0, 0]),
|
|
- onwheel: move |w| q1_color.set([q1_color[0] + (10.0*w.delta_y) as i32, 0, 0]),
|
|
|
|
|
|
+ onwheel: move |w| q1_color.set([q1_color[0] + (10.0*w.delta().strip_units().y) as i32, 0, 0]),
|
|
onmouseleave: move |_| q1_color.set([200; 3]),
|
|
onmouseleave: move |_| q1_color.set([200; 3]),
|
|
onmousemove: update_data,
|
|
onmousemove: update_data,
|
|
"click me"
|
|
"click me"
|
|
@@ -79,7 +79,7 @@ fn app(cx: Scope) -> Element {
|
|
onmouseenter: move |m| q2_color.set([get_brightness(m.data); 3]),
|
|
onmouseenter: move |m| q2_color.set([get_brightness(m.data); 3]),
|
|
onmousedown: move |m| q2_color.set([get_brightness(m.data); 3]),
|
|
onmousedown: move |m| q2_color.set([get_brightness(m.data); 3]),
|
|
onmouseup: move |m| q2_color.set([get_brightness(m.data); 3]),
|
|
onmouseup: move |m| q2_color.set([get_brightness(m.data); 3]),
|
|
- onwheel: move |w| q2_color.set([q2_color[0] + (10.0*w.delta_y) as i32;3]),
|
|
|
|
|
|
+ onwheel: move |w| q2_color.set([q2_color[0] + (10.0*w.delta().strip_units().y) as i32;3]),
|
|
onmouseleave: move |_| q2_color.set([200; 3]),
|
|
onmouseleave: move |_| q2_color.set([200; 3]),
|
|
onmousemove: update_data,
|
|
onmousemove: update_data,
|
|
"click me"
|
|
"click me"
|
|
@@ -99,7 +99,7 @@ fn app(cx: Scope) -> Element {
|
|
onmouseenter: move |m| q3_color.set([0, get_brightness(m.data), 0]),
|
|
onmouseenter: move |m| q3_color.set([0, get_brightness(m.data), 0]),
|
|
onmousedown: move |m| q3_color.set([0, get_brightness(m.data), 0]),
|
|
onmousedown: move |m| q3_color.set([0, get_brightness(m.data), 0]),
|
|
onmouseup: move |m| q3_color.set([0, get_brightness(m.data), 0]),
|
|
onmouseup: move |m| q3_color.set([0, get_brightness(m.data), 0]),
|
|
- onwheel: move |w| q3_color.set([0, q3_color[1] + (10.0*w.delta_y) as i32, 0]),
|
|
|
|
|
|
+ onwheel: move |w| q3_color.set([0, q3_color[1] + (10.0*w.delta().strip_units().y) as i32, 0]),
|
|
onmouseleave: move |_| q3_color.set([200; 3]),
|
|
onmouseleave: move |_| q3_color.set([200; 3]),
|
|
onmousemove: update_data,
|
|
onmousemove: update_data,
|
|
"click me"
|
|
"click me"
|
|
@@ -113,7 +113,7 @@ fn app(cx: Scope) -> Element {
|
|
onmouseenter: move |m| q4_color.set([0, 0, get_brightness(m.data)]),
|
|
onmouseenter: move |m| q4_color.set([0, 0, get_brightness(m.data)]),
|
|
onmousedown: move |m| q4_color.set([0, 0, get_brightness(m.data)]),
|
|
onmousedown: move |m| q4_color.set([0, 0, get_brightness(m.data)]),
|
|
onmouseup: move |m| q4_color.set([0, 0, get_brightness(m.data)]),
|
|
onmouseup: move |m| q4_color.set([0, 0, get_brightness(m.data)]),
|
|
- onwheel: move |w| q4_color.set([0, 0, q4_color[2] + (10.0*w.delta_y) as i32]),
|
|
|
|
|
|
+ onwheel: move |w| q4_color.set([0, 0, q4_color[2] + (10.0*w.delta().strip_units().y) as i32]),
|
|
onmouseleave: move |_| q4_color.set([200; 3]),
|
|
onmouseleave: move |_| q4_color.set([200; 3]),
|
|
onmousemove: update_data,
|
|
onmousemove: update_data,
|
|
"click me"
|
|
"click me"
|