mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 21:35:16 +02:00
Fix mixed up touch/mouse events.
This commit is contained in:
@@ -45,13 +45,13 @@ module.exports = function DeviceScreenDirective($document, ScalingService, Vendo
|
|||||||
function stopTouch() {
|
function stopTouch() {
|
||||||
element.removeClass('fingering')
|
element.removeClass('fingering')
|
||||||
if (BrowserInfo.touch) {
|
if (BrowserInfo.touch) {
|
||||||
element.unbind('mousemove', moveListener)
|
|
||||||
$document.unbind('mouseup', upListener)
|
|
||||||
$document.unbind('mouseleave', upListener)
|
|
||||||
} else {
|
|
||||||
element.unbind('touchmove', moveListener)
|
element.unbind('touchmove', moveListener)
|
||||||
$document.unbind('touchend', upListener)
|
$document.unbind('touchend', upListener)
|
||||||
$document.unbind('touchleave', upListener)
|
$document.unbind('touchleave', upListener)
|
||||||
|
} else {
|
||||||
|
element.unbind('mousemove', moveListener)
|
||||||
|
$document.unbind('mouseup', upListener)
|
||||||
|
$document.unbind('mouseleave', upListener)
|
||||||
}
|
}
|
||||||
seq = 0
|
seq = 0
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user