Skip to content
Browse files

Fixes expected DesktopImage values

  • Loading branch information...
1 parent 708d821 commit 4d13f2fad47d18a9eafcc1794298f9271835e869 @philcali committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 control.js
View
5 control.js
@@ -103,9 +103,10 @@ function Control(url) {
control.addDisplayControls = function(viewport) {
var gatherValues = function() {
- var scale = $('.size').val();
+ var pad = function(value) { return value.match(/\./) ? value : value + ".0"; },
+ scale = pad($(".size").val());
return {
- quality: $('.quality').val(),
+ quality: pad($('.quality').val()),
pointer: $('.pointer').is(':checked'),
scaleX: scale,
scaleY: scale

0 comments on commit 4d13f2f

Please sign in to comment.
Something went wrong with that request. Please try again.