mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-25 20:14:31 +01:00
color-ui: a square wheel's inner press part is pointer-only, the square's own stop takes the keys
This commit is contained in:
1 parent
997acb41e1
commit
db364a1d2b
1 file changed
+2
@@ -443,6 +443,8 @@ impl Component for ColorWheel<'_> {
|
||||
if self.inner == WheelInner::Triangle {
|
||||
// The triangle turns with the hue, so its ring is rebuilt each pass.
|
||||
triangle.focusable().focus_shape(FocusShape::Polygon(geometry.corners(hue, 0.0).to_vec()));
|
||||
} else {
|
||||
triangle.pointer_only("the square's own stop takes the keys");
|
||||
}
|
||||
let marker_reach = Marker::reach(&cx.style.knob, MarkerSize::Regular);
|
||||
for (index, place) in self.places(&geometry).into_iter().enumerate() {
|
||||
|
||||
Reference in new issue
Block a user