summaryrefslogtreecommitdiff
path: root/public/assets/javascripts/ui/editor/WallpaperPicker.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-11-17 18:14:34 -0500
committerJules Laplace <jules@okfoc.us>2014-11-17 18:14:34 -0500
commitfab10593b014ca9db2472c21c846838f72e5fc45 (patch)
tree96f2194d97eb214d1ee01cd471b1c36de35cc590 /public/assets/javascripts/ui/editor/WallpaperPicker.js
parent05b73f5e56fd728454faac8e97d57786fdfb3b51 (diff)
parent37466ff2c09432f27a96f7a33dc041175847f6d6 (diff)
merge
Diffstat (limited to 'public/assets/javascripts/ui/editor/WallpaperPicker.js')
-rw-r--r--public/assets/javascripts/ui/editor/WallpaperPicker.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/assets/javascripts/ui/editor/WallpaperPicker.js b/public/assets/javascripts/ui/editor/WallpaperPicker.js
index c383489..e2aaeb7 100644
--- a/public/assets/javascripts/ui/editor/WallpaperPicker.js
+++ b/public/assets/javascripts/ui/editor/WallpaperPicker.js
@@ -186,10 +186,19 @@ var WallpaperPicker = UploadView.extend({
this.$scale.val( Math.log( this.wall.background.scale ) )
},
+ scaleTimeout: null,
updateScale: function(){
if (! this.wall) return;
var scale = Math.exp( parseFloat(this.$scale.val()) )
this.wall.wallpaperPosition({ scale: scale })
+
+ clearTimeout(this.scaleTimeout)
+ this.scaleTimeout = setTimeout(function(){
+
+ // TODO: watch individual scenery object here
+ Minotaur.watch( app.router.editorView.settings )
+
+ }.bind(this), 500)
},
enterUrl: function(){