mirror of
https://github.com/yuliskov/SmartTube.git
synced 2026-03-13 15:20:26 +08:00
slideable: tweak position 2
This commit is contained in:
@@ -176,12 +176,15 @@ public class SliderPanel extends FrameLayout {
|
||||
|
||||
}else if(xvel == 0){
|
||||
if(left > leftThreshold){
|
||||
// MOD: don't full slide
|
||||
//settleLeft = screenWidth;
|
||||
settleLeft = left;
|
||||
settleLeft = screenWidth;
|
||||
}
|
||||
}
|
||||
|
||||
// MOD: don't full slide (remove whole if block to revert original)
|
||||
if (settleLeft == screenWidth) {
|
||||
settleLeft = left;
|
||||
}
|
||||
|
||||
dragHelper.settleCapturedViewAt(settleLeft, releasedChild.getTop());
|
||||
invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user