var obj = document.getElementById('HomeNav');
obj.addEventListener('touchmove', function(event) {
// If there's exactly one finger inside this element
if (event.targetTouches.length == 1) {
var touch = event.targetTouches[0];
// Place element where the finger is
if(!$scope.nx && !$scope.ny){
$scope.nx = touch.pageX;
$scope.ny = touch.pageY;
}
}
}, false);