From b9ec6a89082fe635a49b268fd0a589bd87f83d0a Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Mon, 31 Jan 2022 20:00:22 -0800 Subject: [PATCH] Fix caret positioning issue per https://github.com/hodgef/react-simple-keyboard/issues/1756 --- src/lib/components/Keyboard.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/components/Keyboard.ts b/src/lib/components/Keyboard.ts index 49bebdba..25421f2c 100644 --- a/src/lib/components/Keyboard.ts +++ b/src/lib/components/Keyboard.ts @@ -1127,10 +1127,6 @@ class SimpleKeyboard { event.target === instance.keyboardDOM || (event.target && instance.keyboardDOM.contains(event.target)); - if (instance.isMouseHold) { - instance.isMouseHold = false; - } - if ( (targetTagName === "textarea" || (targetTagName === "input" &&