Save toolbar position when moving it only when stopped moving it

This commit is contained in:
David Rowe 2016-06-05 08:55:27 +12:00
parent 5805c0cf9e
commit b6cb5617d3

View file

@ -256,7 +256,6 @@ ToolBar = function(x, y, direction, optionalPersistenceKey, optionalInitialPosit
y: y - ToolBar.SPACING
});
}
this.save();
}
this.setAlpha = function(alpha, tool) {
@ -421,6 +420,9 @@ ToolBar = function(x, y, direction, optionalPersistenceKey, optionalInitialPosit
for (var tool in that.tools) {
that.tools[tool].buttonDown(false);
}
if (that.mightBeDragging) {
that.save();
}
}
this.mouseMove = function (event) {
if (!that.mightBeDragging || !event.isLeftButton) {