Merge pull request #8017 from ctrlaltdavid/toolbar-positioning

Save toolbar position when moving it only when stopped moving it
This commit is contained in:
Brad Hefta-Gaub 2016-06-04 16:00:30 -07:00
commit 0a79ab5ff8

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