Skip to content

Instantly share code, notes, and snippets.

@hahakumquat
Created August 16, 2016 00:23
$("#" + baseId)
.mousedown(function() {
isDragging = false;
})
.mousemove(function() {
var wasDragging = isDragging;
isDragging = true;
if (wasDragging)
editor.resize();
})
.mouseup(function() {
var wasDragging = isDragging;
isDragging = false;
if (!wasDragging) {
editor.resize();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment