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(); 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() {