1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-20 07:08:06 +00:00

term bugs + kiosk config

This commit is contained in:
kepler155c@gmail.com
2019-02-20 01:24:37 -05:00
parent da35988d50
commit c307f4020c
4 changed files with 12 additions and 6 deletions

View File

@@ -132,7 +132,7 @@ function Entry:process(ie)
elseif ie.code == 'mouse_click' then
-- need starting x passed in instead of hardcoding 3
self.pos = math.min(ie.x - 3 + self.scroll, #self.value)
self.pos = math.max(0, math.min(ie.x - 3 + self.scroll, #self.value))
updated = true
elseif ie.code == 'mouse_rightclick' then