mirror of https://github.com/axmolengine/axmol.git
Merge pull request #1524 from dumganhar/gles20
fixed #1538: Logic error in CCControlHuePicker::checkSliderPosition.
This commit is contained in:
commit
188f59a16c
|
@ -162,7 +162,7 @@ bool CCControlHuePicker::checkSliderPosition(CCPoint location)
|
||||||
double distance = sqrt(pow (location.x + 10, 2) + pow(location.y, 2));
|
double distance = sqrt(pow (location.x + 10, 2) + pow(location.y, 2));
|
||||||
|
|
||||||
// check that the touch location is within the circle
|
// check that the touch location is within the circle
|
||||||
if (160 > distance && distance > 118)
|
if (80 > distance && distance > 59)
|
||||||
{
|
{
|
||||||
updateSliderPosition(location);
|
updateSliderPosition(location);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue