From ae81e8636365ba5e6d04019a6b4bdb74a41c97c2 Mon Sep 17 00:00:00 2001 From: Mark MacKay Date: Sat, 25 Aug 2012 16:02:58 -0500 Subject: [PATCH] working in ie9 --- editor/images/svg_edit_icons.svg | 29 +++++++++++++++++++++------ editor/jquery-draginput.js | 12 +++++------ editor/svg-editor.html | 32 +++++++++++++----------------- editor/svgicons/jquery.svgicons.js | 1 - 4 files changed, 43 insertions(+), 31 deletions(-) diff --git a/editor/images/svg_edit_icons.svg b/editor/images/svg_edit_icons.svg index 8226efb..e6a361c 100644 --- a/editor/images/svg_edit_icons.svg +++ b/editor/images/svg_edit_icons.svg @@ -1,6 +1,28 @@  + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/editor/jquery-draginput.js b/editor/jquery-draginput.js index 1cf63ef..282d352 100644 --- a/editor/jquery-draginput.js +++ b/editor/jquery-draginput.js @@ -97,14 +97,14 @@ $.fn.dragInput = function(cfg){ } this.updateCursor = function(){ - var value = parseFloat(this.value) - var pos = (value*-1)/scale+cursorHeight - $cursor.css("top", pos) + var value = parseFloat(this.value); + var pos = (value*-1)/scale+cursorHeight; + $cursor.css("top", pos); } - this.start = function(e) { + this.launch = function(e) { var selectedElems = canvas.getSelectedElems(); - if (isTouch) e = e.originalEvent.touches[0] + if (isTouch) e = e.originalEvent.touches[0]; var oy = e.pageY; var val = this.value; var el = this; @@ -123,7 +123,7 @@ $.fn.dragInput = function(cfg){ .bind("mousedown touchstart", function(e){ this.blur(); - this.start(e); + this.launch(e); }) .bind("dblclick taphold", function(e) { diff --git a/editor/svg-editor.html b/editor/svg-editor.html index f082434..1d06277 100644 --- a/editor/svg-editor.html +++ b/editor/svg-editor.html @@ -123,10 +123,10 @@