From 70dab4918869c4e86f0a31fbab8d0833a6432cf2 Mon Sep 17 00:00:00 2001 From: Simo Kinnunen Date: Mon, 19 May 2014 13:51:45 +0900 Subject: [PATCH] Fix mixed up touch/mouse events. --- res/app/components/stf/screen/screen-directive.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/res/app/components/stf/screen/screen-directive.js b/res/app/components/stf/screen/screen-directive.js index 0605d902..d4c27dcf 100644 --- a/res/app/components/stf/screen/screen-directive.js +++ b/res/app/components/stf/screen/screen-directive.js @@ -45,13 +45,13 @@ module.exports = function DeviceScreenDirective($document, ScalingService, Vendo function stopTouch() { element.removeClass('fingering') if (BrowserInfo.touch) { - element.unbind('mousemove', moveListener) - $document.unbind('mouseup', upListener) - $document.unbind('mouseleave', upListener) - } else { element.unbind('touchmove', moveListener) $document.unbind('touchend', upListener) $document.unbind('touchleave', upListener) + } else { + element.unbind('mousemove', moveListener) + $document.unbind('mouseup', upListener) + $document.unbind('mouseleave', upListener) } seq = 0 }