js/foundation/control/dyncontrol/dyncontrol.js in rsence-2.2.2 vs js/foundation/control/dyncontrol/dyncontrol.js in rsence-2.2.3
- old
+ new
@@ -439,10 +439,15 @@
}
else if(_parent.elemId){
x-=_parent.pageX();
y-=_parent.pageY();
}
+ else {
+ var _scrollPos = ELEM.getScrollPosition(0);
+ x+=_scrollPos[0];
+ y+=_scrollPos[1];
+ }
this._startPoint = new HPoint(x,y);
this._startRect = new HRect( this.rect );
this._detectActionFlag();
if(this._actionFlag!==-1){
this._actionFns[this._actionFlag](this,x,y);
@@ -471,10 +476,15 @@
}
else if(_parent.elemId){
x-=_parent.pageX();
y-=_parent.pageY();
}
+ else {
+ var _scrollPos = ELEM.getScrollPosition(0);
+ x+=_scrollPos[0];
+ y+=_scrollPos[1];
+ }
if(this._actionFlag!==-1){
this._actionFns[this._actionFlag](this,x,y);
}
return true; // prevents text selection
},
@@ -500,9 +510,14 @@
y -= ELEM._getVisibleTopPosition( _parent.markupElemIds.subview );
}
else if(_parent.elemId){
x-=_parent.pageX();
y-=_parent.pageY();
+ }
+ else {
+ var _scrollPos = ELEM.getScrollPosition(0);
+ x+=_scrollPos[0];
+ y+=_scrollPos[1];
}
if(this._actionFlag!==-1){
this._actionFns[this._actionFlag](this,x,y);
}
this.setStyle('cursor','default');