Skip to content

Commit

Permalink
Update enscroll.js
Browse files Browse the repository at this point in the history
  • Loading branch information
itbra committed Jan 28, 2015
1 parent 286ae30 commit 5de224f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/mylibs/enscroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 5de224f

Please sign in to comment.