The Birdfont Source Code


All Repositories / birdfont.git / commitdiff – RSS feed

Fix scrolling in description tab

These changes was commited to the Birdfont repository Sat, 11 Apr 2015 22:23:52 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
[Sat, 11 Apr 2015 22:23:52 +0000]

Updated Files

libbirdfont/DescriptionDisplay.vala
--- a/libbirdfont/DescriptionDisplay.vala +++ b/libbirdfont/DescriptionDisplay.vala @@ -319,20 +319,6 @@ if (!(0 <= focus_index < focus_ring.size)) { focus_index = 0; } - - if (w.widget_y < 0) { - scroll -= allocation.height; - - if (scroll < 0) { - scroll = 0; - } - } else if (w.widget_y > allocation.height - 30 * MainWindow.units) { - scroll += allocation.height; - - if (scroll + allocation.height >= content_height) { - scroll = content_height - allocation.height; - } - } update_scrollbar (); GlyphCanvas.redraw (); @@ -375,7 +361,7 @@ public override void scroll_wheel_down (double x, double y) { scroll += 25 * MainWindow.units; - + if (scroll + allocation.height >= content_height) { scroll = content_height - allocation.height; }