summaryrefslogtreecommitdiffstatshomepage
path: root/includes/js/dojox/layout/DragPane.js
diff options
context:
space:
mode:
authorGravatar mensonge2008-11-14 15:39:19 +0000
committerGravatar mensonge2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dojox/layout/DragPane.js
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
scuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.zip
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/layout/DragPane.js')
-rw-r--r--includes/js/dojox/layout/DragPane.js65
1 files changed, 0 insertions, 65 deletions
diff --git a/includes/js/dojox/layout/DragPane.js b/includes/js/dojox/layout/DragPane.js
deleted file mode 100644
index 4dec5e4..0000000
--- a/includes/js/dojox/layout/DragPane.js
+++ /dev/null
@@ -1,65 +0,0 @@
-if(!dojo._hasResource["dojox.layout.DragPane"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
-dojo._hasResource["dojox.layout.DragPane"] = true;
-dojo.provide("dojox.layout.DragPane");
-
-dojo.require("dijit._Widget");
-
-dojo.declare("dojox.layout.DragPane",
- dijit._Widget, {
- //
- // summary: Makes a pane's content dragable by/within it's surface
- //
- // description:
- // A small widget which takes a node with overflow:auto and
- // allows dragging to position the content. Useful with images,
- // or for just adding "something" to a overflow-able div.
- //
- // invert: Boolean
- // Naturally, the behavior is to invert the axis of the drag.
- // Setting invert:false will make the pane drag in the same
- // direction as the mouse.
- invert:true,
-
- postCreate: function(){
-
- this.inherited(arguments);
- this.connect(this.domNode,"onmousedown","_down");
- this.connect(this.domNode,"onmouseup","_up");
- },
-
- _down: function(e){
- // summary: mousedown handler, start the dragging
- var t = this.domNode;
- dojo.style(t,"cursor","move");
- this._x = e.pageX;
- this._y = e.pageY;
- if ((this._x < t.offsetLeft + t.clientWidth) &&
- (this._y < t.offsetTop + t.clientHeight)) {
- dojo.setSelectable(t,false);
- this._mover = dojo.connect(t,"onmousemove",this,"_move");
- }
- },
-
- _up: function(e){
- // summary: mouseup handler, stop the dragging
-
- dojo.setSelectable(this.domNode,true);
- dojo.style(this.domNode,"cursor","pointer");
- dojo.disconnect(this._mover);
- },
-
- _move: function(e){
- // summary: mousemove listener, offset the scroll amount by the delta
- // since our last call.
-
- var mod = this.invert ? 1 : -1;
- this.domNode.scrollTop += (this._y - e.pageY) * mod;
- this.domNode.scrollLeft += (this._x - e.pageX) * mod;
- this._x = e.pageX;
- this._y = e.pageY;
-
- }
-
-});
-
-}