fix useWith mouse conflict with resize borders

This commit is contained in:
Eduardo Bart
2012-03-28 19:25:00 -03:00
parent 5201071707
commit 0e46df3f29
5 changed files with 16 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ end
function UIResizeBorder:onHoverChange(hovered)
if hovered then
if g_ui.getDraggingWidget() then return end
if Mouse.isCursorChanged() or Mouse.isPressed() then return end
if self:getWidth() > self:getHeight() then
Mouse.setVerticalCursor()
self.vertical = true

View File

@@ -9,7 +9,7 @@ end
function UISplitter:onHoverChange(hovered)
if hovered then
if g_ui.getDraggingWidget() then return end
if Mouse.isCursorChanged() or Mouse.isPressed() then return end
if self:getWidth() > self:getHeight() then
Mouse.setVerticalCursor()
self.vertical = true