From 0af17482ce4c62ca968d0965c10af32e7d237b36 Mon Sep 17 00:00:00 2001 From: Kenny Shields Date: Fri, 14 Nov 2014 22:00:45 -0500 Subject: [PATCH] Allow textinput indicator tracking to be enabled/disabled --- objects/textinput.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/objects/textinput.lua b/objects/textinput.lua index 9a33709..a1f9444 100644 --- a/objects/textinput.lua +++ b/objects/textinput.lua @@ -66,6 +66,7 @@ function newobject:initialize() self.internal = false self.autoscroll = false self.masked = false + self.trackindicator = true self.OnEnter = nil self.OnTextChanged = nil self.OnFocusGained = nil @@ -953,7 +954,7 @@ function newobject:UpdateIndicator() end -- indicator should be visible, so correcting scrolls - if self.focus then + if self.focus and self.trackindicator then local indicatorRelativeX = width + self.textoffsetx - self.offsetx local leftlimit, rightlimit = 1, self:GetWidth() - 1 if self.linenumberspanel then