Fix #8037 - bug on zoom
[roobuilder] / src / Builder4 / WindowRooView.bjs
index 71df426..98fa40c 100644 (file)
                "\t//GLib.debug(\"scroll %f\",  dy);",
                "\t",
                "\tthis.distance += dy;",
-               "\tif (this.distance < 1) {",
+               "\t if (this.distance < -1) {",
+               " ",
                "\t\tBuilderApplication.settings.editor_font_size ++;",
                "\t\tthis.distance = 0;",
                "\t}",
-               "\tif (this.distance > -1) {",
+               "\tif (this.distance > 1) {",
                "\t\tBuilderApplication.settings.editor_font_size --;",
                "\t\tthis.distance = 0;",
                "\t}",