TScanCode扫描修改

Signed-off-by: 13359243081 <lanshulei@huawei.com>
This commit is contained in:
13359243081 2024-09-26 15:02:55 +08:00
parent 7b48f82407
commit 848bef2eb2
2 changed files with 2 additions and 2 deletions

View File

@ -941,7 +941,7 @@ void AccessibilitySettingsConfig::CloneAudioState()
float audioBalance = static_cast<float>(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);
}
}

View File

@ -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;
}