From 5de224f35eea028a12e6ef94d16d8401e19323c9 Mon Sep 17 00:00:00 2001 From: Tino Brackebusch Date: Wed, 28 Jan 2015 15:07:14 +0100 Subject: [PATCH] Update enscroll.js Fix as described here [https://github.com/jstoudt/enscroll/issues/49](#49) --- js/mylibs/enscroll.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/mylibs/enscroll.js b/js/mylibs/enscroll.js index ee555b6..c0f769b 100644 --- a/js/mylibs/enscroll.js +++ b/js/mylibs/enscroll.js @@ -811,6 +811,10 @@ pct = $this.scrollTop() / ( this.scrollHeight - $this.height() ); handle.style.top = ( pct * ( trackHeight - handleHeight ) ) + 'px'; trackWrapper.style.display = 'block'; + + $this.removeClass('not-scrollable').addClass('scrollable'); + } else { + $this.removeClass('scrollable').addClass('not-scrollable'); } }