improving filter display

This commit is contained in:
Manuel Simon Hirsig
2016-08-09 01:54:06 +02:00
parent c3dacc8214
commit 3d21088bf7
2 changed files with 11 additions and 6 deletions
+2 -1
View File
@@ -546,7 +546,8 @@ do
local x, y = GetCursorPosition()
local new_x_offset = this.x_offset + x - this.x
local new_y_offset = this.y_offset + y - this.y
this:SetHorizontalScroll(min(0, new_x_offset - this.x_extra))
this:SetHorizontalScroll(min(0, max((this:GetWidth() - m.filter_display_width())*m.filter_display:GetScale() - 2, new_x_offset - this.x_extra)))
this:SetVerticalScroll(max(0, new_y_offset - this.y_extra))
this.x_extra = max(this.x_extra, new_x_offset)
this.y_extra = min(this.y_extra, new_y_offset)