[Control buttob resize] Try to fix drag behavior

This commit is contained in:
Duy Tran Khanh
2021-01-15 15:14:13 +07:00
committed by GitHub
parent 54b9f9540b
commit cff5b588ca

View File

@@ -372,8 +372,8 @@ public abstract class HandleView extends View implements ViewPositionListener, V
int newWidth = (int) (mDownWidth + (rawX - mDownX));
int newHeight = (int) (mDownHeight + (rawY - mDownY));
mDownX = rawX;
mDownY = rawY;
// mDownX = rawX;
// mDownY = rawY;
params.width = Math.max(50, newWidth);
params.height = Math.max(50, newHeight);