diff --git a/services/aams/src/accessibility_settings_config.cpp b/services/aams/src/accessibility_settings_config.cpp index 05eac1f8..cfdcad0d 100644 --- a/services/aams/src/accessibility_settings_config.cpp +++ b/services/aams/src/accessibility_settings_config.cpp @@ -941,7 +941,7 @@ void AccessibilitySettingsConfig::CloneAudioState() float audioBalance = static_cast(systemDatashare_->GetFloatValue(AUDIO_BALANCE_KEY, INVALID_MASTER_BALANCE_VALUE)); - if (fabs(audioBalance - INVALID_MASTER_BALANCE_VALUE) < FLT_EPSILON) { + if (fabs(audioBalance - INVALID_MASTER_BALANCE_VALUE) > FLT_EPSILON) { SetAudioBalance(audioBalance); } } diff --git a/services/aams/src/accessibility_zoom_gesture.cpp b/services/aams/src/accessibility_zoom_gesture.cpp index a934ec56..1c699c5c 100755 --- a/services/aams/src/accessibility_zoom_gesture.cpp +++ b/services/aams/src/accessibility_zoom_gesture.cpp @@ -457,7 +457,7 @@ void AccessibilityZoomGesture::RecognizeScale(MMI::PointerEvent &event, ZOOM_FOC } float scaleSpan = (span - lastSpan_) * scaleRatio_; - if (fabs(scaleSpan) < FLT_EPSILON) { + if (fabs(scaleSpan) > FLT_EPSILON) { OnScale(scaleSpan); lastSpan_ = span; }