浏览代码

textbox scroll fix

John Dodis 1 年之前
父节点
当前提交
e4bfef44c7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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