Merge branch 'mrbeam' into stable-1.2.2
This commit is contained in:
commit
94c673473b
1 changed files with 3 additions and 3 deletions
|
|
@ -102,11 +102,11 @@ $(function(){
|
|||
self.availableWidth($('#workingarea div.span8').innerWidth());
|
||||
};
|
||||
|
||||
self.move_laser = function(el){
|
||||
self.move_laser = function(data, evt){
|
||||
self.abortFreeTransforms();
|
||||
if(self.state.isOperational() && !self.state.isPrinting()){
|
||||
var x = self.px2mm(event.offsetX);
|
||||
var y = self.px2mm(event.toElement.ownerSVGElement.offsetHeight - event.offsetY); // hopefully this works across browsers
|
||||
var x = self.px2mm(evt.offsetX);
|
||||
var y = self.px2mm(evt.target.ownerSVGElement.getBoundingClientRect().height - evt.offsetY); // hopefully this works across browsers
|
||||
x = Math.min(x, self.workingAreaWidthMM());
|
||||
y = Math.min(y, self.workingAreaHeightMM());
|
||||
$.ajax({
|
||||
|
|
|
|||
Loading…
Reference in a new issue