Fixed possible endless loop caused by round errors when passing float values between C++ and Javascript.
Increased granularity of the offset slider. Textfield now accepts arbitrary values.
This commit is contained in:
@@ -36,7 +36,7 @@ float AccessibilityTabController::heightOffset() const {
|
||||
}
|
||||
|
||||
void AccessibilityTabController::setHeightOffset(float value, bool notify) {
|
||||
if (m_heightOffset != value) {
|
||||
if (std::abs(m_heightOffset - value) > 0.001) {
|
||||
modHeightOffset(value - m_heightOffset, notify);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user