mirror of https://github.com/axmolengine/axmol.git
Merge pull request #7469 from Mazyod/optional-scrollview-delegate
Make the scrollView delegate methods optional
This commit is contained in:
commit
f5e7d1ef7b
|
@ -52,12 +52,12 @@ public:
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual void scrollViewDidScroll(ScrollView* view) = 0;
|
virtual void scrollViewDidScroll(ScrollView* view) {};
|
||||||
/**
|
/**
|
||||||
* @js NA
|
* @js NA
|
||||||
* @lua NA
|
* @lua NA
|
||||||
*/
|
*/
|
||||||
virtual void scrollViewDidZoom(ScrollView* view) = 0;
|
virtual void scrollViewDidZoom(ScrollView* view) {};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue