1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-14 10:16:26 +00:00

fix emacs key binding

This commit is contained in:
Rokt33r
2016-03-15 14:05:33 +09:00
parent 593d242a4c
commit b65101f4be
2 changed files with 12 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ export default class MainContainer extends React.Component {
if (window.document.body.style.zoom == null) {
window.document.body.style.zoom = 1
}
console.log(window.document.body.style.zoom)
let zoom = Number(window.document.body.style.zoom)
if (e.deltaY > 0 && zoom < 4) {
document.body.style.zoom = zoom + 0.05