js/foundation/control/dyncontrol/dyncontrol.js in rsence-2.0.8.19 vs js/foundation/control/dyncontrol/dyncontrol.js in rsence-2.0.9.20.pre
- old
+ new
@@ -393,19 +393,26 @@
/* Method used to detect the action flags. Also sets the cursor. */
_detectActionFlag: function(){
var i,
_actionPoint = this._startPoint.subtract(this.rect.left,this.rect.top),
_actionRects = this._actionRects;
- if(this.options.noResize && _actionRects[8].contains(_actionPoint)){
- this._actionFlag = 8;
- this.setStyle('cursor',this._actionCrsr[8]);
- return;
- }
- for(i=0;i!==9;i++){
- if(_actionRects[i].contains(_actionPoint)){
- this._actionFlag=i;
- this.setStyle('cursor',this._actionCrsr[i]);
+ if(this.options.noResize){
+ if(_actionRects[8].contains(_actionPoint)){
+ this._actionFlag = 8;
+ this.setStyle('cursor',this._actionCrsr[8]);
return;
+ }
+ else {
+ this._actionFlag = -1;
+ }
+ }
+ else{
+ for(i=0;i!==9;i++){
+ if(_actionRects[i].contains(_actionPoint)){
+ this._actionFlag=i;
+ this.setStyle('cursor',this._actionCrsr[i]);
+ return;
+ }
}
}
},
/** = Description