Fixed a bug which sometimes occured on touch devices.
The bug would prevent the viewport from properly changing size.
This commit is contained in:
parent
21256e9c6d
commit
359f88a764
|
|
@ -396,13 +396,13 @@ that.absY = function(y) {
|
||||||
|
|
||||||
|
|
||||||
that.resize = function(width, height) {
|
that.resize = function(width, height) {
|
||||||
c_prevStyle = "";
|
c_prevStyle = "";
|
||||||
|
|
||||||
fb_width = width;
|
fb_width = width;
|
||||||
fb_height = height;
|
fb_height = height;
|
||||||
|
|
||||||
rescale(conf.scale);
|
rescale(conf.scale);
|
||||||
that.viewportChange();
|
that.viewportChange(0, 0, width, height);
|
||||||
};
|
};
|
||||||
|
|
||||||
that.clear = function() {
|
that.clear = function() {
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ window.onresize = function () {
|
||||||
// the resolution of the session
|
// the resolution of the session
|
||||||
clearTimeout(resizeTimeout);
|
clearTimeout(resizeTimeout);
|
||||||
resizeTimeout = setTimeout(function(){
|
resizeTimeout = setTimeout(function(){
|
||||||
UI.onresize();
|
UI.onresize();
|
||||||
}, 500);
|
}, 500);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue