Emit scroll-touch-edge event instead of changing the behavior of scroll-touch-begin/end

fix #6873
This commit is contained in:
Anthony Tseng 2016-09-17 22:29:32 +08:00
parent d4b204799d
commit 269a87b26f
8 changed files with 19 additions and 9 deletions

View file

@ -230,6 +230,10 @@ void Window::OnWindowScrollTouchEnd() {
Emit("scroll-touch-end");
}
void Window::OnWindowScrollTouchEdge() {
Emit("scroll-touch-edge");
}
void Window::OnWindowSwipe(const std::string& direction) {
Emit("swipe", direction);
}