Commit 0ae2d7c5 authored by rockyl's avatar rockyl

更新tiny-image库

parent 5753aeeb
......@@ -50,4 +50,8 @@ export class HtmlView extends FloatDisplay implements IUIComponent{
return this;
}
}
protected __cloneSelf() {
return new FloatDisplay();
}
}
......@@ -92,6 +92,8 @@ export class TextInput extends Label implements IUIComponent {
style.padding = '0';
style.border = '0';
style.backgroundColor = 'transparent';
style.userSelect = 'text';
style.webkitUserSelect = 'text';
input.type = 'text';
input.addEventListener('focus', this.onFocus);
......@@ -219,13 +221,10 @@ export class TextInput extends Label implements IUIComponent {
input.style.pointerEvents = 'none';
input.blur();
this.text = input.value;
this.fillColor = this._oldFillColor;
this.strokeColor = this._oldStrokeColor;
this.dispatchEvent(Event.BLUR);
}
private onFocus = (e) => {
......@@ -235,6 +234,8 @@ export class TextInput extends Label implements IUIComponent {
private onBlur = (e) => {
this.setBlur();
this.dispatchEvent(Event.BLUR);
delayScrollTop();
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment