mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Allow textinput indicator tracking to be enabled/disabled
This commit is contained in:
parent
e79832997e
commit
0af17482ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user