ui: allow local zoom under 1
This commit is contained in:
parent
f64f344a76
commit
fe6a8f7af2
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,7 @@ document.addEventListener('wheel', function(event) {
|
|||
event.preventDefault()
|
||||
let d = - event.deltaY / (10 * Math.abs(event.deltaY)) * 2
|
||||
if (!isNaN(d)) {
|
||||
localZoom = Math.max(parseFloat(d) + parseFloat(localZoom), 1)
|
||||
localZoom = Math.max(parseFloat(d) + parseFloat(localZoom), 0.25)
|
||||
applylocalZoom()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue