Commit 5c1cd22c authored by Julian Sparber's avatar Julian Sparber

fix autoscroll, disable autoscroll when not at the end of message history, fix #137

parent f59c3d2e
......@@ -2993,7 +2993,7 @@ impl App {
let op = self.op.clone();
if let Some(adj) = s.get_vadjustment() {
adj.connect_changed(move |adj| {
adj.connect_value_changed(move |adj| {
let bottom = adj.get_upper() - adj.get_page_size();
if adj.get_value() == bottom {
op.lock().unwrap().autoscroll = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment