From 68783eca52550fc66f9f6dd6df9283f2c4e41b7e Mon Sep 17 00:00:00 2001 From: renderhjs <> Date: Sun, 27 Oct 2019 23:26:57 +1100 Subject: [PATCH] Increase invalidateCount to 100 to fix invalidate errors on OSX (macbook touchpad) and mobile devices with touch input that fire many more scroll and mouse events. --- haxe/ui/core/ComponentValidation.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/haxe/ui/core/ComponentValidation.hx b/haxe/ui/core/ComponentValidation.hx index 6170bae3d..6a6e6118f 100644 --- a/haxe/ui/core/ComponentValidation.hx +++ b/haxe/ui/core/ComponentValidation.hx @@ -88,7 +88,7 @@ class ComponentValidation extends ComponentEvents { _invalidateCount++; //we track the invalidate count to check if we are in an infinite loop or serious bug because it affects performance - if (this._invalidateCount >= 10) { + if (this._invalidateCount >= 100) { throw 'The validation queue returned too many times during validation. This may be an infinite loop. Try to avoid doing anything that calls invalidate() during validation.'; }