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:
2017-02-09 23:56:11 +01:00
parent 1aa1580a90
commit 9265829aff
2 changed files with 16 additions and 8 deletions
@@ -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);
}
}