We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e76f7d commit 8a017e4Copy full SHA for 8a017e4
1 file changed
tests/cpp-tests/Source/BaseTest.cpp
@@ -72,6 +72,29 @@ class TestCustomTableView : public TableView
72
return table;
73
}
74
75
+ void onPointerUp(PointerEvent* event) override
76
+ {
77
+ if (!this->isVisible())
78
79
+ return;
80
+ }
81
+
82
+ if (_touchedCell)
83
84
+ auto label = (Label*)_touchedCell->getChildByTag(TABEL_LABEL_TAG);
85
86
+ if (label->onPointerHitTest(event, nullptr) && _tableViewDelegate != nullptr)
87
88
+ _tableViewDelegate->tableCellUnhighlight(this, _touchedCell);
89
+ _tableViewDelegate->tableCellTouched(this, _touchedCell);
90
91
92
+ _touchedCell = nullptr;
93
94
95
+ ScrollView::onPointerUp(event);
96
97
98
bool onPointerScroll(PointerEvent* event) override
99
{
100
float moveY = event->getScrollY() * 20;
0 commit comments