提交 bd62716d 编写于 作者: L Laurent Margirier

add touchend event (see PR #32)

上级 e7be14d6
...@@ -59,6 +59,7 @@ KeyboardInputManager.prototype.listen = function () { ...@@ -59,6 +59,7 @@ KeyboardInputManager.prototype.listen = function () {
var keepPlaying = document.querySelector(".keep-playing-button"); var keepPlaying = document.querySelector(".keep-playing-button");
keepPlaying.addEventListener("click", this.keepPlaying.bind(this)); keepPlaying.addEventListener("click", this.keepPlaying.bind(this));
keepPlaying.addEventListener("touchend", this.keepPlaying.bind(this));
// Listen to swipe events // Listen to swipe events
var touchStartClientX, touchStartClientY; var touchStartClientX, touchStartClientY;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册