From 4e1a61d8b622a31d0e58486aa81ee7c14e42ea35 Mon Sep 17 00:00:00 2001 From: aecsocket Date: Thu, 21 May 2026 22:48:39 +0100 Subject: [PATCH] Adjust window occlusion threshold (#6157) --- apps/app/src/api/ads.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/app/src/api/ads.rs b/apps/app/src/api/ads.rs index f82d58b6c..3e23c5275 100644 --- a/apps/app/src/api/ads.rs +++ b/apps/app/src/api/ads.rs @@ -18,7 +18,7 @@ pub struct AdsState { const AD_LINK: &str = "https://modrinth.com/wrapper/app-ads-cookie"; #[cfg(any(windows, target_os = "macos"))] -pub(super) const OCCLUDED_AREA_THRESHOLD: f64 = 1.0; +pub(super) const OCCLUDED_AREA_THRESHOLD: f64 = 0.5; #[cfg(not(target_os = "linux"))] const ADS_USER_AGENT: &str = concat!( "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 ",