android: a bit smaller hit area for selection handles

Change-Id: I985b7b22c4794862a421ad797b907e33266c2c27
This commit is contained in:
Tomaž Vajngerl
2015-03-18 21:16:25 +09:00
committed by Miklos Vajna
parent 2bf1955d76
commit 6d9610c694

View File

@@ -55,10 +55,10 @@ public class DrawElementHandle {
public void reposition(float x, float y) { public void reposition(float x, float y) {
mPosition.x = x; mPosition.x = x;
mPosition.y = y; mPosition.y = y;
mHitRect.left = mPosition.x - mRadius * 2; mHitRect.left = mPosition.x - mRadius * 1.5f;
mHitRect.right = mPosition.x + mRadius * 2; mHitRect.right = mPosition.x + mRadius * 1.5f;
mHitRect.top = mPosition.y - mRadius * 2; mHitRect.top = mPosition.y - mRadius * 1.5f;
mHitRect.bottom = mPosition.y + mRadius * 2; mHitRect.bottom = mPosition.y + mRadius * 1.5f;
} }
public boolean contains(float x, float y) { public boolean contains(float x, float y) {