mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-30 08:39:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@476 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
797ecbe2b4
commit
a22af04abc
1 changed files with 4 additions and 4 deletions
|
|
@ -456,8 +456,9 @@ function editorDragStart(evt) {
|
||||||
|
|
||||||
xAddEventListener(document, 'mousemove', editorDragMove, false);
|
xAddEventListener(document, 'mousemove', editorDragMove, false);
|
||||||
xAddEventListener(editorDragObj.obj, 'mouseout', editorDragMove, false);
|
xAddEventListener(editorDragObj.obj, 'mouseout', editorDragMove, false);
|
||||||
|
|
||||||
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
||||||
if(iframe_obj) xAddEventListener(iframe_obj.contentWindow.document, 'mousemove', editorDragMove, false);
|
if(iframe_obj) xAddEventListener(iframe_obj.contentWindow.document, 'mouseover', editorDragStop, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
function editorDragMove(evt) {
|
function editorDragMove(evt) {
|
||||||
|
|
@ -465,11 +466,10 @@ function editorDragMove(evt) {
|
||||||
|
|
||||||
var e = new xEvent(evt);
|
var e = new xEvent(evt);
|
||||||
var h = e.pageY - editorDragObj.y;
|
var h = e.pageY - editorDragObj.y;
|
||||||
|
editorDragObj.y = e.pageY;
|
||||||
|
|
||||||
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
||||||
xHeight(iframe_obj, xHeight(iframe_obj)+h);
|
xHeight(iframe_obj, xHeight(iframe_obj)+h);
|
||||||
|
|
||||||
editorDragObj.y = e.pageY;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function editorDragStop(evt) {
|
function editorDragStop(evt) {
|
||||||
|
|
@ -479,7 +479,7 @@ function editorDragStop(evt) {
|
||||||
xRemoveEventListener(editorDragObj.obj, 'mouseout', editorDragMove, false);
|
xRemoveEventListener(editorDragObj.obj, 'mouseout', editorDragMove, false);
|
||||||
|
|
||||||
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
var iframe_obj = editorGetIFrame(editorDragObj.id);
|
||||||
if(iframe_obj) xRemoveEventListener(iframe_obj.contentWindow.document, 'mousemove', editorDragMove, false);
|
if(iframe_obj) xRemoveEventListener(iframe_obj.contentWindow.document, 'mouseover', editorDragStop, false);
|
||||||
|
|
||||||
editorDragObj.isDrag = false;
|
editorDragObj.isDrag = false;
|
||||||
editorDragObj.y = 0;
|
editorDragObj.y = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue