Hide focus ring for unfocused layout and under interactive move

This commit is contained in:
Ivan Molodetskikh
2024-12-29 11:04:08 +03:00
parent d1998ae3fa
commit be05b66ac3
7 changed files with 33 additions and 9 deletions
+2 -1
View File
@@ -2180,6 +2180,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
renderer: &mut R,
scale: Scale<f64>,
target: RenderTarget,
focus_ring: bool,
) -> Vec<ScrollingSpaceRenderElement<R>> {
let mut rv = vec![];
@@ -2208,7 +2209,7 @@ impl<W: LayoutElement> ScrollingSpace<W> {
let mut first = true;
for (tile, tile_pos) in self.tiles_with_render_positions() {
// For the active tile (which comes first), draw the focus ring.
let focus_ring = first;
let focus_ring = focus_ring && first;
first = false;
rv.extend(