|
@@ -94,6 +94,7 @@ class Window {
|
|
element.addEventListener("keypress", onKeyPress);
|
|
element.addEventListener("keypress", onKeyPress);
|
|
element.addEventListener("blur", onFocus.bind(false));
|
|
element.addEventListener("blur", onFocus.bind(false));
|
|
element.addEventListener("focus", onFocus.bind(true));
|
|
element.addEventListener("focus", onFocus.bind(true));
|
|
|
|
+ element.addEventListener("resize", checkResize);
|
|
canvas.oncontextmenu = function(e){
|
|
canvas.oncontextmenu = function(e){
|
|
e.stopPropagation();
|
|
e.stopPropagation();
|
|
e.preventDefault();
|
|
e.preventDefault();
|
|
@@ -119,8 +120,6 @@ class Window {
|
|
}
|
|
}
|
|
curW = this.width;
|
|
curW = this.width;
|
|
curH = this.height;
|
|
curH = this.height;
|
|
- timer = new haxe.Timer(100);
|
|
|
|
- timer.run = checkResize;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
function checkResize() {
|
|
function checkResize() {
|