mirror of
https://github.com/Insality/druid
synced 2025-06-27 18:37:45 +02:00
disable scroll if scroll zone <= items zone
This commit is contained in:
parent
82b15243fc
commit
263197eb8d
@ -376,6 +376,8 @@ end
|
||||
--- Set the scroll possibly area
|
||||
function M.set_border(self, border)
|
||||
self.border = border
|
||||
border.z = math.max(border.x, border.z)
|
||||
border.w = math.max(border.y, border.w)
|
||||
self.can_x = (border.x ~= border.z)
|
||||
self.can_y = (border.y ~= border.w)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user