| 70 | } |
| 71 | |
| 72 | virtual void onTouchEnded(Touch* touch, Event* event) override |
| 73 | { |
| 74 | if (!this->isVisible()) |
| 75 | { |
| 76 | return; |
| 77 | } |
| 78 | |
| 79 | if (_touchedCell) |
| 80 | { |
| 81 | auto label = (Label*)_touchedCell->getChildByTag(TABEL_LABEL_TAG); |
| 82 | |
| 83 | Rect bbox = label->getBoundingBox(); |
| 84 | bbox.origin = _touchedCell->convertToWorldSpace(bbox.origin); |
| 85 | |
| 86 | if (bbox.containsPoint(touch->getLocation()) && _tableViewDelegate != nullptr) |
| 87 | { |
| 88 | _tableViewDelegate->tableCellUnhighlight(this, _touchedCell); |
| 89 | _tableViewDelegate->tableCellTouched(this, _touchedCell); |
| 90 | } |
| 91 | |
| 92 | _touchedCell = nullptr; |
| 93 | } |
| 94 | |
| 95 | ScrollView::onTouchEnded(touch, event); |
| 96 | } |
| 97 | |
| 98 | bool onMouseScroll(Event* event) |
| 99 | { |
nothing calls this directly
no test coverage detected