The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix scroll wheel

These changes was commited to the Birdfont repository Mon, 15 Jun 2015 19:05:36 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Mon, 15 Jun 2015 19:05:36 +0000]

Updated Files

libbirdfont/TabContent.vala
--- a/libbirdfont/TabContent.vala +++ b/libbirdfont/TabContent.vala @@ -208,7 +208,7 @@ } if (!MainWindow.get_menu ().show_menu) { - if (pixeldelta < 0) { + if (pixeldelta > 0) { GlyphCanvas.current_display.scroll_wheel_up (x, y, pixeldelta); } else { GlyphCanvas.current_display.scroll_wheel_down (x, y, pixeldelta); @@ -232,7 +232,7 @@ } if (!MainWindow.get_menu ().show_menu) { - GlyphCanvas.current_display.scroll_wheel_down (x, y, 15); + GlyphCanvas.current_display.scroll_wheel_down (x, y, -15); } }