Fix Editor scroll zoom sensitivity - Bonk.io

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

À partir de 2021-12-04. Voir la dernière version.

Auteur
Excigma
Évaluations
0 0 0
Version
0.0.1
Créer
2021-12-02
Mis à jour
2021-12-04
Taille
1,65 ko
Licence
GPL-3.0
S'applique à

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