Many improvements.
This commit is contained in:
4
third-party/mexui/Core/Entity/Component.js
vendored
4
third-party/mexui/Core/Entity/Component.js
vendored
@@ -9,7 +9,7 @@ mexui.util.extend(mexui.Entity.Component, mexui.Entity.StyleableEntity);
|
||||
// input
|
||||
mexui.Entity.Component.prototype.onMouseDown = function(e)
|
||||
{
|
||||
if(this.moveable && this.isCursorOverComponent())
|
||||
if(e.button == 0 && this.moveable && this.isCursorOverComponent())
|
||||
{
|
||||
this.moving = true;
|
||||
e.used = true;
|
||||
@@ -18,7 +18,7 @@ mexui.Entity.Component.prototype.onMouseDown = function(e)
|
||||
|
||||
mexui.Entity.Component.prototype.onMouseUp = function(e)
|
||||
{
|
||||
if(this.moving)
|
||||
if(e.button == 0 && this.moving)
|
||||
{
|
||||
this.moving = false;
|
||||
e.used = true;
|
||||
|
||||
@@ -53,6 +53,14 @@ mexui.Entity.StyleableEntity.defaultStyles = mexui.util.linkGlobalStyles(mexui.E
|
||||
textColour: toColour(0, 0, 0, 255)
|
||||
}
|
||||
*/
|
||||
},
|
||||
focused:
|
||||
{
|
||||
borderColour: toColour(28, 119, 198, 255)
|
||||
},
|
||||
invalidValue:
|
||||
{
|
||||
borderColour: toColour(250, 5, 5, 255)
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user