android: a bit smaller hit area for selection handles
Change-Id: I985b7b22c4794862a421ad797b907e33266c2c27
This commit is contained in:
committed by
Miklos Vajna
parent
2bf1955d76
commit
6d9610c694
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user