Changed Editor.drop() not to disconnectAll( window ), since there are other non-drag-related signals connected to window.
This commit is contained in:
parent
c8a9b98599
commit
53b4aa571d
|
@ -723,8 +723,8 @@ Editor.prototype.start_drag = function ( event ) {
|
||||||
signal( this, "grabber_pressed", event );
|
signal( this, "grabber_pressed", event );
|
||||||
|
|
||||||
var self = this;
|
var self = this;
|
||||||
connect( window, "onmousemove", function ( event ) { self.drag( event ) } );
|
this.drag_signal = connect( window, "onmousemove", function ( event ) { self.drag( event ) } );
|
||||||
connect( window, "onmouseup", function ( event ) { self.drop( event ) } );
|
this.drop_signal = connect( window, "onmouseup", function ( event ) { self.drop( event ) } );
|
||||||
}
|
}
|
||||||
|
|
||||||
Editor.prototype.drag = function( event ) {
|
Editor.prototype.drag = function( event ) {
|
||||||
|
@ -752,7 +752,8 @@ Editor.prototype.drag = function( event ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Editor.prototype.drop = function( event ) {
|
Editor.prototype.drop = function( event ) {
|
||||||
disconnectAll( window );
|
disconnect( this.drag_signal );
|
||||||
|
disconnect( this.drop_signal );
|
||||||
|
|
||||||
removeElementClass( this.div, "note_div_dragging" );
|
removeElementClass( this.div, "note_div_dragging" );
|
||||||
removeElementClass( this.holder, "note_holder_dragging" );
|
removeElementClass( this.holder, "note_holder_dragging" );
|
||||||
|
|
Reference in New Issue