| 279 | } |
| 280 | |
| 281 | bool ControlStepper::onTouchBegan(Touch* pTouch, Event* /*pEvent*/) |
| 282 | { |
| 283 | if (!isTouchInside(pTouch) || !isEnabled() || !isVisible()) |
| 284 | { |
| 285 | return false; |
| 286 | } |
| 287 | |
| 288 | Vec2 location = this->getTouchLocation(pTouch); |
| 289 | this->updateLayoutUsingTouchLocation(location); |
| 290 | |
| 291 | _touchInsideFlag = true; |
| 292 | |
| 293 | if (_autorepeat) |
| 294 | { |
| 295 | this->startAutorepeat(); |
| 296 | } |
| 297 | |
| 298 | return true; |
| 299 | } |
| 300 | |
| 301 | void ControlStepper::onTouchMoved(Touch* pTouch, Event* /*pEvent*/) |
| 302 | { |
nothing calls this directly
no test coverage detected