mirror of
https://gitee.com/openharmony/accessibility
synced 2024-11-23 06:50:30 +00:00
TScanCode扫描修改
Signed-off-by: 13359243081 <lanshulei@huawei.com>
This commit is contained in:
parent
7b48f82407
commit
848bef2eb2
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user