Sha256: 6ace53d4a882afc534a4c4aa1da5b0b5be33b5cbca1eb6f2508eb88accc70dcc

Contents?: true

Size: 980 Bytes

Versions: 9

Compression:

Stored size: 980 Bytes

Contents

//>>built
define("dojox/layout/DragPane",["dojo/_base/declare","dijit/_Widget","dojo/_base/html","dojo/dom-style"],function(_1,_2,_3,_4){
return _1("dojox.layout.DragPane",_2,{invert:true,postCreate:function(){
this.connect(this.domNode,"onmousedown","_down");
this.connect(this.domNode,"onmouseleave","_up");
this.connect(this.domNode,"onmouseup","_up");
},_down:function(e){
var t=this.domNode;
e.preventDefault();
_4.set(t,"cursor","move");
this._x=e.pageX;
this._y=e.pageY;
if((this._x<t.offsetLeft+t.clientWidth)&&(this._y<t.offsetTop+t.clientHeight)){
_3.setSelectable(t,false);
this._mover=this.connect(t,"onmousemove","_move");
}
},_up:function(e){
_3.setSelectable(this.domNode,true);
_4.set(this.domNode,"cursor","pointer");
this._mover&&this.disconnect(this._mover);
delete this._mover;
},_move:function(e){
var _5=this.invert?1:-1;
this.domNode.scrollTop+=(this._y-e.pageY)*_5;
this.domNode.scrollLeft+=(this._x-e.pageX)*_5;
this._x=e.pageX;
this._y=e.pageY;
}});
});

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
dojox-rails-0.14.0 vendor/assets/javascripts/dojox/layout/DragPane.js
dojox-rails-0.13.0 vendor/assets/javascripts/dojox/layout/DragPane.js
dojox-rails-0.12.0 vendor/assets/javascripts/dojox/layout/DragPane.js
dojox-rails-0.11.0 vendor/assets/javascripts/layout/DragPane.js
dojo-rails-0.9.4 vendor/assets/javascripts/dojox/layout/DragPane.js
dojo-rails-0.9.3 vendor/assets/javascripts/dojox/layout/DragPane.js
dojo-rails-0.9.2 vendor/assets/javascripts/dojox/layout/DragPane.js
dojo-rails-0.9.1 vendor/assets/javascripts/dojox/layout/DragPane.js
dojo-rails-0.9.0 vendor/assets/javascripts/dojox/layout/DragPane.js