Skip to content

Commit

Permalink
fix for scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirkoddd committed Aug 30, 2019
1 parent 494f43a commit 9fd92b7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rangeseekbar/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.Mirkoddd'
version = '1.0.4'
version = '1.0.5'

repositories {
mavenCentral()
Expand All @@ -19,8 +19,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 29
versionCode 3
versionName "1.0.4"
versionCode 5
versionName "1.0.5"

consumerProguardFiles 'consumer-rules.pro'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
break;

case ACTION_DOWN:
view.getParent().requestDisallowInterceptTouchEvent(true);
t1X = motionEvent.getX() - motionEvent.getRawX() + thumbStart.getTranslationX();
thumbStart.setPressed(true);
break;
Expand All @@ -184,6 +185,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
invalidate();

break;

}
return true;
}
Expand All @@ -199,6 +201,7 @@ public boolean onTouch(View view, MotionEvent motionEvent) {
break;

case ACTION_DOWN:
view.getParent().requestDisallowInterceptTouchEvent(true);
t2X = motionEvent.getX() - motionEvent.getRawX() + thumbEnd.getTranslationX();
thumbEnd.setPressed(true);
break;
Expand Down

0 comments on commit 9fd92b7

Please sign in to comment.