Skip to content

Instantly share code, notes, and snippets.

@jkatzer
Created July 21, 2015 22:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkatzer/8a98005ecec04fa0f098 to your computer and use it in GitHub Desktop.
Save jkatzer/8a98005ecec04fa0f098 to your computer and use it in GitHub Desktop.
disable slack scrolling
TS.client.ui.slowScrollMsgsToPosition = function (v,w,x){var u=TS.model.archive_view_is_showing;
w=w&&!u;
var y;
if(u){TS.client.archives.msgs_are_auto_scrolling=true;
y=TS.client.archives.$scroller
}else{TS.model.ui.msgs_are_auto_scrolling=true;
y=TS.client.ui.$msgs_scroller_div
}y.stop().animate({scrollTop:v},1,function(){setTimeout(function(){if(u){TS.client.archives.msgs_are_auto_scrolling=false
}else{TS.model.ui.msgs_are_auto_scrolling=false
}},1);
if(w){TS.client.msg_pane.checkUnreads()
}if(x){x()
}})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment