Jelajahi Sumber

Attempt to fix jumping Glucose popover

polscm32 1 tahun lalu
induk
melakukan
d20f2015fa

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -106,8 +106,8 @@ struct MainChartView: View {
 
 
     private var selectedGlucose: GlucoseStored? {
     private var selectedGlucose: GlucoseStored? {
         if let selection = selection {
         if let selection = selection {
-            let lowerBound = selection.addingTimeInterval(-120)
-            let upperBound = selection.addingTimeInterval(120)
+            let lowerBound = selection.addingTimeInterval(-150)
+            let upperBound = selection.addingTimeInterval(150)
             return state.glucoseFromPersistence.first { $0.date ?? now >= lowerBound && $0.date ?? now <= upperBound }
             return state.glucoseFromPersistence.first { $0.date ?? now >= lowerBound && $0.date ?? now <= upperBound }
         } else {
         } else {
             return nil
             return nil