From d9cd680c021348148b32e5bccb6c3cdaaba790de Mon Sep 17 00:00:00 2001 From: Nyxia <157828245+cr4zyengineer@users.noreply.github.com> Date: Thu, 9 Apr 2026 06:16:00 +0200 Subject: [PATCH] fix: reseting input delegate notification on selection change this fixes a huge lag issue where it just starts to lag when writing text then changing selection before changing selection again. --- Sources/Runestone/TextView/Core/TextInputView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Runestone/TextView/Core/TextInputView.swift b/Sources/Runestone/TextView/Core/TextInputView.swift index a7b2f2c1..3ec15e1c 100644 --- a/Sources/Runestone/TextView/Core/TextInputView.swift +++ b/Sources/Runestone/TextView/Core/TextInputView.swift @@ -703,6 +703,7 @@ final class TextInputView: UIView, UITextInput { // We will sometimes disable notifying the input delegate when the user enters Korean text. // This workaround is inspired by a dialog with Alexander Blach (@lextar), developer of Textastic. if notifyInputDelegateAboutSelectionChangeInLayoutSubviews { + notifyInputDelegateAboutSelectionChangeInLayoutSubviews = false inputDelegate?.selectionWillChange(self) inputDelegate?.selectionDidChange(self) }