mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
Save toolbar position when moving it only when stopped moving it
This commit is contained in:
parent
5805c0cf9e
commit
b6cb5617d3
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue