Switch to a single OS X swipe event with a direction argument
This commit is contained in:
parent
03319a5426
commit
8482109dea
7 changed files with 21 additions and 64 deletions
|
@ -243,20 +243,8 @@ void Window::OnWindowScrollTouchEnd() {
|
|||
Emit("scroll-touch-end");
|
||||
}
|
||||
|
||||
void Window::OnWindowSwipeUp() {
|
||||
Emit("swipe-up");
|
||||
}
|
||||
|
||||
void Window::OnWindowSwipeRight() {
|
||||
Emit("swipe-right");
|
||||
}
|
||||
|
||||
void Window::OnWindowSwipeDown() {
|
||||
Emit("swipe-down");
|
||||
}
|
||||
|
||||
void Window::OnWindowSwipeLeft() {
|
||||
Emit("swipe-left");
|
||||
void Window::OnWindowSwipe(const std::string& direction) {
|
||||
Emit("swipe", direction);
|
||||
}
|
||||
|
||||
void Window::OnWindowEnterHtmlFullScreen() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue