Skip to content

Commit

Permalink
Fixed issue with resize on iOS 10.3.2
Browse files Browse the repository at this point in the history
The new version was sending the resize event before the window changed size
  • Loading branch information
Carlos Cabanero committed Jun 8, 2017
1 parent 50854ba commit ca65bf5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Resources/termcontrol.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ var sigwinch = function() {
t.scrollPort_.onResize_(null);
}

window.addEventListener('resize', sigwinch);
window.onresize = function(){
clearTimeout(window.resizedFinished);
window.resizedFinished = setTimeout(sigwinch, 100);
};

var increaseTermFontSize = function() {
var size = t.getFontSize();
Expand Down

0 comments on commit ca65bf5

Please sign in to comment.