Minimize resize handlers code

This commit is contained in:
Dan Sosedoff 2022-12-05 16:51:33 -06:00
parent fbc228eb6c
commit 9b086365d0
No known key found for this signature in database
GPG Key ID: 26186197D282B164

View File

@ -1256,21 +1256,10 @@ function bindInputResizeEvents() {
checkInputSize();
}
$("body").on("mousemove", function(e) {
onInputResize(e);
});
$("body").on("mouseup", function() {
endInputResize();
});
$("#input_resize_handler").on("mousedown", function() {
beginInputResize();
});
$(window).on("resize", function() {
checkInputSize();
});
$("body").on("mousemove", onInputResize);
$("body").on("mouseup", endInputResize);
$("#input_resize_handler").on("mousedown", beginInputResize);
$(window).on("resize", checkInputSize);
}
function checkInputSize() {