This commit is contained in:
Guillermo Rauch 2016-07-04 20:09:43 -07:00
parent fb08d45eac
commit 814677f3b0

View file

@ -273,12 +273,8 @@ export default class HyperTerm extends Component {
const uid = this.state.sessions[this.state.active]; const uid = this.state.sessions[this.state.active];
const term = this.refs[`term-${uid}`]; const term = this.refs[`term-${uid}`];
if (term) { if (term) {
try {
const size = term.term.prefs_.get('font-size'); const size = term.term.prefs_.get('font-size');
term.term.prefs_.set('font-size', size + value); term.term.prefs_.set('font-size', size + value);
} catch (e) {
alert(e);
}
} }
} }
@ -451,7 +447,9 @@ export default class HyperTerm extends Component {
} else { } else {
// http://www.quirksmode.org/dom/events/click.html // http://www.quirksmode.org/dom/events/click.html
// https://en.wikipedia.org/wiki/Double-click // https://en.wikipedia.org/wiki/Double-click
this.clickTimer = setTimeout(() => this.clicks = 0, 500); this.clickTimer = setTimeout(() => {
this.clicks = 0;
}, 500);
} }
} }