From e37aba7e9a128fbc9aa4337f87f5b070df9c9453 Mon Sep 17 00:00:00 2001 From: Roman Shapiro Date: Mon, 23 Oct 2023 16:26:49 +0700 Subject: [PATCH] Added comment --- src/Myra/Graphics2D/UI/TextBox.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Myra/Graphics2D/UI/TextBox.cs b/src/Myra/Graphics2D/UI/TextBox.cs index c30e00c0..7564f0bd 100644 --- a/src/Myra/Graphics2D/UI/TextBox.cs +++ b/src/Myra/Graphics2D/UI/TextBox.cs @@ -1410,6 +1410,7 @@ public override void InternalRender(RenderContext context) if (_isTouchDown) { + // This makes the text to scroll if the touch is outside of the TextBox bounds var passed = DateTime.Now - _lastCursorUpdate; if (passed.TotalMilliseconds > CursorUpdateDelayInMs) {