Minimize resize handlers code
This commit is contained in:
parent
fbc228eb6c
commit
9b086365d0
@ -1256,21 +1256,10 @@ function bindInputResizeEvents() {
|
|||||||
checkInputSize();
|
checkInputSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
$("body").on("mousemove", function(e) {
|
$("body").on("mousemove", onInputResize);
|
||||||
onInputResize(e);
|
$("body").on("mouseup", endInputResize);
|
||||||
});
|
$("#input_resize_handler").on("mousedown", beginInputResize);
|
||||||
|
$(window).on("resize", checkInputSize);
|
||||||
$("body").on("mouseup", function() {
|
|
||||||
endInputResize();
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#input_resize_handler").on("mousedown", function() {
|
|
||||||
beginInputResize();
|
|
||||||
});
|
|
||||||
|
|
||||||
$(window).on("resize", function() {
|
|
||||||
checkInputSize();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function checkInputSize() {
|
function checkInputSize() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user