Fix Editor scroll zoom sensitivity - Bonk.io

Fixes scrolling in the editor causing zoom to go ZOOOM (ie when using a trackpad)

Versione datata 04/12/2021. Vedi la nuova versione l'ultima versione.

Autore
Excigma
Valutazione
0 0 0
Versione
0.0.1
Creato il
02/12/2021
Aggiornato il
04/12/2021
Dimensione
1,65 KB
Licenza
GPL-3.0
Applica a

Fix Editor scroll zoom sensitivity - Bonk.io

⚠️ Requires kklee version 0.25 or higher to also be installed

Should work in Chrome and Firefox
Change REVERSE_SCROLL to true to reverse the scroll direction
Change SENSITIVITY higher to make it zoom more, and lower to zoom less

Reduce the scrolling sensitivity, especially on trackpads, by calculating the zoom differently that factors the amount of scroll

Savvy? You can edit the code to adjust the sensitivity or reverse the scroll direction