Browse Source

textbox scroll fix

John Dodis 1 year ago
parent
commit
e4bfef44c7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ui2d/ui2d.lua

+ 1 - 1
ui2d/ui2d.lua

@@ -939,7 +939,7 @@ function UI2D.TextBox( name, num_visible_chars, text )
 	UpdateLayout( bbox )
 
 	local scroll = 0
-	if active_textbox then
+	if active_textbox and active_textbox.id == cur_window.id .. name then
 		scroll = active_textbox.scroll
 	end