aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-08-01 14:57:59 +0100
committerStruan Donald <struan@exo.org.uk>2013-08-01 14:57:59 +0100
commit601f37fd866a5184fd9fe25687a0e47b5d6297b1 (patch)
treec23f23b57713e853630be45807365480def6dd15
parentd02488764585189d4e0826830311dbda6b8ba749 (diff)
Do not perform background map blurring unless iPhone 4s+
On iPhone 4 it slows things down too much and as there's no way to sensibly limit this on Android devices just don't do it on Android.
-rw-r--r--src/js/views/around.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/js/views/around.js b/src/js/views/around.js
index 9ffc98f..e8f962f 100644
--- a/src/js/views/around.js
+++ b/src/js/views/around.js
@@ -336,7 +336,9 @@
pauseMap: function() {
this.stopListening(FMS.locator);
FMS.locator.stopTracking();
- $('#map_box').addClass('background-map');
+ if ( FMS.iPhoneModel > 3 ) {
+ $('#map_box').addClass('background-map');
+ }
$('#map_box').off('touchend');
if ( fixmystreet.map ) {
fixmystreet.nav.deactivate();