diff --git a/source/Ox.UI/js/Bar/Resizebar.js b/source/Ox.UI/js/Bar/Resizebar.js index 73a9acd5..d1586bdc 100644 --- a/source/Ox.UI/js/Bar/Resizebar.js +++ b/source/Ox.UI/js/Bar/Resizebar.js @@ -46,7 +46,12 @@ Ox.Resizebar = function(options, self) { dragstart: dragstart, drag: drag, dragend: dragend, - mousedown: mousedown + mousedown: function() { + triggerEvents('resizestart'); + }, + mouseup: function() { + triggerEvents('resizeend'); + } }) .append($('
').addClass('OxSpace')) .append($('
').addClass('OxLine')) @@ -157,10 +162,6 @@ Ox.Resizebar = function(options, self) { return title; } - function mousedown() { - triggerEvents('resizestart'); - } - function reset() { if (self.options.resizable && !self.options.collapsed) { // fixme: silly, pass an option