aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-07-25 12:24:49 +0100
committerStruan Donald <struan@exo.org.uk>2013-07-25 12:24:49 +0100
commit3e386c7a0d5c0ac4dafeb5d05c2b99fdabddeec9 (patch)
treec85154955427fde06564f901eda5a9707f8608b3 /src
parentfe55fed3e9791c145073bb2c54d030219c7fd288 (diff)
Stop locating screen being able to scroll. Fixes #60
Diffstat (limited to 'src')
-rw-r--r--src/js/views/locator.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/views/locator.js b/src/js/views/locator.js
index 46ebcce..9b630a2 100644
--- a/src/js/views/locator.js
+++ b/src/js/views/locator.js
@@ -4,6 +4,7 @@
skipLocationCheck: false,
locate: function() {
+ $(document).delegate('.ui-content', 'touchmove', false);
$('#locating').show();
this.listenTo(FMS.locator, 'gps_located', this.gotLocation);
this.listenTo(FMS.locator, 'gps_failed', this.failedLocation);
@@ -35,6 +36,7 @@
showLocateProgress: function() {
if ( !this.located && this.locateCount > 20 ) {
FMS.searchMessage = FMS.strings.geolocation_failed;
+ $(document).undelegate('.ui-content', 'touchmove', false);
$('#locating').hide();
return;
}
@@ -49,6 +51,7 @@
this.stopListening(FMS.locator, 'gps_locating');
this.stopListening(FMS.locator, 'gps_located');
this.stopListening(FMS.locator, 'gps_failed');
+ $(document).undelegate('.ui-content', 'touchmove', false);
$('#locating').hide();
},