mirror of
https://github.com/Insality/druid.git
synced 2025-09-27 18:12:19 +02:00
disable scroll if scroll zone <= items zone
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user