|
|
@ -131,8 +131,8 @@ |
|
|
|
var offset2Body = this.get(0).getBoundingClientRect ? this.get(0).getBoundingClientRect() : this.offset(); |
|
|
|
var offset2Body = this.get(0).getBoundingClientRect ? this.get(0).getBoundingClientRect() : this.offset(); |
|
|
|
var width = offset2Body.width || this.outerWidth(); |
|
|
|
var width = offset2Body.width || this.outerWidth(); |
|
|
|
var height = offset2Body.height || this.outerHeight(); |
|
|
|
var height = offset2Body.height || this.outerHeight(); |
|
|
|
var pageX = e.pageX * scale, |
|
|
|
var pageX = e.clientX * scale, |
|
|
|
pageY = e.pageY * scale + transformY; |
|
|
|
pageY = e.clientY * scale + transformY; |
|
|
|
return !(pageX < Math.floor(offset2Body.left) || pageX > offset2Body.left + width |
|
|
|
return !(pageX < Math.floor(offset2Body.left) || pageX > offset2Body.left + width |
|
|
|
|| pageY < Math.floor(offset2Body.top) || pageY > offset2Body.top + height); |
|
|
|
|| pageY < Math.floor(offset2Body.top) || pageY > offset2Body.top + height); |
|
|
|
}; |
|
|
|
}; |
|
|
|