File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -485,10 +485,6 @@ impl NodeCollection {
485
485
node. set_disabled ( ) ;
486
486
}
487
487
488
- if !item. is_visible ( ) {
489
- node. set_hidden ( ) ;
490
- }
491
-
492
488
let geometry = item. geometry ( ) ;
493
489
let absolute_origin = item. map_to_window ( geometry. origin ) + window_position. to_vector ( ) ;
494
490
let physical_origin = ( absolute_origin * scale_factor) . cast :: < f64 > ( ) ;
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ pub fn accessible_descendents(root_item: &ItemRc) -> impl Iterator<Item = ItemRc
66
66
candidate : ItemRc ,
67
67
descendent_candidates : & mut Vec < ItemRc > ,
68
68
) -> Option < ItemRc > {
69
- if candidate. is_accessible ( ) {
69
+ if candidate. is_accessible ( ) && candidate . is_visible ( ) {
70
70
return Some ( candidate) ;
71
71
}
72
72
Original file line number Diff line number Diff line change @@ -335,8 +335,8 @@ impl ItemRc {
335
335
!clip. is_empty ( )
336
336
&& clip. max . x >= geometry. min . x
337
337
&& clip. max . y >= geometry. min . y
338
- && clip. min . x <= geometry. max . x
339
- && clip. min . y <= geometry. max . y
338
+ && clip. min . x < geometry. max . x
339
+ && clip. min . y < geometry. max . y
340
340
}
341
341
342
342
/// Returns the clip rect that applies to this item (in window coordinates) as well as the
You can’t perform that action at this time.
0 commit comments