Monotone-Parent: 32ac613ce54828e76c41d1e1457a982917bf0b8e

Monotone-Revision: 0f36b33a495ffd3bef8582e162ec509cf0681dd4

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2007-05-25T15:40:05
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Francis Lachapelle
2007-05-25 15:40:05 +00:00
parent ecba04deb6
commit 0a3dfef4f6
+8 -8
View File
@@ -15,8 +15,8 @@ var SOGoDragHandlesInterface = {
stopHandleDraggingBinded: null,
moveBinded: null,
bind: function () {
this.startHandleDraggingBinded = this.startHandleDragging.bindAsEventListener(this);
Event.observe(this, "mousedown", this.startHandleDraggingBinded, false);
this.startHandleDraggingBound = this.startHandleDragging.bindAsEventListener(this);
Event.observe(this, "mousedown", this.startHandleDraggingBound, false);
this.onmousedown = function() { return false }
},
_determineType: function () {
@@ -49,10 +49,10 @@ var SOGoDragHandlesInterface = {
this.origLower = this.lowerBlock.offsetTop - 5;
document.body.style.cursor = "n-resize";
}
this.stopHandleDraggingBinded = this.stopHandleDragging.bindAsEventListener(this);
Event.observe(document.body, "mouseup", this.stopHandleDraggingBinded, true);
this.moveBinded = this.move.bindAsEventListener(this);
Event.observe(document.body, "mousemove", this.moveBinded, true);
this.stopHandleDraggingBound = this.stopHandleDragging.bindAsEventListener(this);
Event.observe(document.body, "mouseup", this.stopHandleDraggingBound, true);
this.moveBound = this.move.bindAsEventListener(this);
Event.observe(document.body, "mousemove", this.moveBound, true);
this.move(event);
event.cancelBubble = true;
}
@@ -74,8 +74,8 @@ var SOGoDragHandlesInterface = {
this.upperBlock.style.height = (this.origUpper + deltaY - delta) + 'px';
}
Event.stopObserving(document.body, "mouseup", this.stopHandleDraggingBinded, true);
Event.stopObserving(document.body, "mousemove", this.moveBinded, true);
Event.stopObserving(document.body, "mouseup", this.stopHandleDraggingBound, true);
Event.stopObserving(document.body, "mousemove", this.moveBound, true);
document.body.setAttribute('style', '');