Update SVG-Edit
Version 2.5.1
This commit is contained in:
parent
8e57e97869
commit
113e0af736
10 changed files with 723 additions and 335 deletions
|
@ -117,10 +117,12 @@ $.fn.SpinButton = function(cfg){
|
|||
var x = e.pageX || e.x;
|
||||
var y = e.pageY || e.y;
|
||||
var el = e.target || e.srcElement;
|
||||
var height = $(el).outerHeight()/2;
|
||||
var scale = svgEditor.tool_scale || 1;
|
||||
var height = $(el).height()/2;
|
||||
|
||||
var direction =
|
||||
(x > coord(el,'offsetLeft') + el.offsetWidth - this.spinCfg._btn_width)
|
||||
? ((y < coord(el,'offsetTop') + height) ? 1 : -1) : 0;
|
||||
(x > coord(el,'offsetLeft') + el.offsetWidth*scale - this.spinCfg._btn_width)
|
||||
? ((y < coord(el,'offsetTop') + height*scale) ? 1 : -1) : 0;
|
||||
|
||||
if (direction !== this.spinCfg._direction) {
|
||||
// Style up/down buttons:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue