added mousewheel support
[blender.git] / source / blender / src / drawtext.c
index eb79095b7dd9d7ac77bbdc8cd924f87b6f1d5ee8..178710f93872c9372ba5d441d4408c5c6f744c05 100644 (file)
@@ -1140,6 +1140,16 @@ void winqreadtextspace(unsigned short event, short val, char ascii)
                        screen_skip(st, -st->viewlines);
                        do_draw= 1;
                        break;
+
+               case WHEELUPMOUSE:
+                       screen_skip(st, -3);
+                       do_draw= 1;
+                       break;
+
+               case WHEELDOWNMOUSE:
+                       screen_skip(st, 3);
+                       do_draw= 1;
+                       break;
                }
        }