mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7466 from andyque/fixPageView
remove unused functions
This commit is contained in:
commit
a192ddfebd
|
@ -336,10 +336,6 @@ void PageView::autoScroll(float dt)
|
|||
bool PageView::onTouchBegan(Touch *touch, Event *unusedEvent)
|
||||
{
|
||||
bool pass = Layout::onTouchBegan(touch, unusedEvent);
|
||||
if (_hitted)
|
||||
{
|
||||
handlePressLogic(touch);
|
||||
}
|
||||
return pass;
|
||||
}
|
||||
|
||||
|
@ -433,10 +429,6 @@ bool PageView::scrollPages(float touchOffset)
|
|||
return true;
|
||||
}
|
||||
|
||||
void PageView::handlePressLogic(Touch *touch)
|
||||
{
|
||||
//no-op
|
||||
}
|
||||
|
||||
void PageView::handleMoveLogic(Touch *touch)
|
||||
{
|
||||
|
@ -507,7 +499,7 @@ void PageView::interceptTouchEvent(TouchEventType event, Widget *sender, Touch *
|
|||
switch (event)
|
||||
{
|
||||
case TouchEventType::BEGAN:
|
||||
handlePressLogic(touch);
|
||||
//no-op
|
||||
break;
|
||||
case TouchEventType::MOVED:
|
||||
{
|
||||
|
|
|
@ -185,7 +185,6 @@ protected:
|
|||
void updateAllPagesPosition();
|
||||
void autoScroll(float dt);
|
||||
|
||||
virtual void handlePressLogic(Touch *touch);
|
||||
virtual void handleMoveLogic(Touch *touch) ;
|
||||
virtual void handleReleaseLogic(Touch *touch) ;
|
||||
virtual void interceptTouchEvent(TouchEventType event, Widget* sender,Touch *touch) ;
|
||||
|
|
Loading…
Reference in New Issue