mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 04:15:26 +00:00
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:
@@ -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', '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user