Skip to content

Commit ec60933

Browse files
committed
a11y/zoom: Add more leeway for OnEdge movement
1 parent 0ba0a0c commit ec60933

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shell/zoom.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl ZoomState {
280280
ZoomMovement::Continuously => output_state_ref.focal_point = cursor_position.to_f64(),
281281
ZoomMovement::OnEdge => {
282282
if !zoomed_output_geometry
283-
.overlaps_or_touches(Rectangle::new(original_position, Size::from((1, 1))))
283+
.overlaps_or_touches(Rectangle::new(original_position, Size::from((16, 16))))
284284
{
285285
zoomed_output_geometry.loc = cursor_position.to_global(&output)
286286
- zoomed_output_geometry.size.downscale(2).to_point();

0 commit comments

Comments
 (0)