Completely replace perfect-scrollbar with SimpleBar.

perfect-scrollbar replaces both the appearance and the behavior of the
scrollbar, and its emulated behavior will never feel native on most
platforms.  SimpleBar customizes the appearance while preserving the
native behavior.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
Anders Kaseorg
2019-02-28 16:40:05 -08:00
committed by Tim Abbott
parent 491589579a
commit 141088586b
35 changed files with 111 additions and 134 deletions

View File

@@ -34,6 +34,7 @@ exports.scroll_element_into_container = function (elem, container) {
// this will be non-intrusive to users when they already have
// the element visible.
container = ui.get_scroll_element(container);
var elem_top = elem.position().top;
var elem_bottom = elem_top + elem.innerHeight();