Skip to content

Commit 083c53d

Browse files
author
TuringTechnologies
committed
The TouchScrollBar will no longer pop out at start up.
1 parent c51147b commit 083c53d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
22
apply plugin: 'com.github.dcendents.android-maven'
33
apply plugin: 'com.jfrog.bintray'
44

5-
def version = '10.0.1'
5+
def version = '10.0.2'
66

77
install {
88
repositories.mavenInstaller {

lib/src/main/java/com/turingtechnologies/materialscrollbar/MaterialScrollBar.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,9 @@ public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
672672
super.onScrolled(recyclerView, dx, dy);
673673

674674
scrollUtils.scrollHandleAndIndicator();
675-
onScroll();
675+
if(dy != 0){
676+
onScroll();
677+
}
676678

677679
//Disables any swipeRefreshLayout parent if the recyclerview is not at the top and enables it if it is.
678680
if(swipeRefreshLayout != null){

0 commit comments

Comments
 (0)