Index: /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html
===================================================================
--- /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1274)
+++ /FCKeditor/branches/features/floating_dialog/editor/fckdialog.html	(revision 1275)
@@ -279,21 +279,4 @@
 	var lastCoords = null ;
 	
-	var getMouseCoordinates = function( evt )
-	{
-		var element = evt.srcElement || evt.target ;
-		var doc = FCKTools.GetElementDocument( element ) ;
-		var view = doc.parentWindow || evt.view ;
-		var retval = { 'x': evt.clientX, 'y': evt.clientY };
-
-		if ( view != Args().TopWindow )
-		{
-			var offset = FCKTools.GetDocumentPosition( Args().TopWindow, doc.documentElement ) ;
-			retval.x += offset.x ;
-			retval.y += offset.y ;
-		}
-
-		return retval ;
-	}
-
 	var cleanUpHandlers = function()
 	{
@@ -310,17 +293,8 @@
 			return ;
 
-		// Debouncing logic for Opera, for preventing the dialog from vibrating during mouse drags.
-		if ( FCKBrowserInfo.IsOpera )
-		{
-			if ( window.LastMoveTimestamp > (new Date()).getTime() - 20 )
-				return ;
-			else
-				window.LastMoveTimestamp = (new Date()).getTime() ;
-		}
-
 		if ( !evt )
 			evt = FCKTools.GetElementDocument( this ).parentWindow.event ;
 
-		var currentCoords = getMouseCoordinates( evt );
+		var currentCoords = {'x' : evt.screenX, 'y' : evt.screenY};
 		var dx = currentCoords.x - lastCoords.x;
 		var dy = currentCoords.y - lastCoords.y;
@@ -368,5 +342,5 @@
 				return ;
 
-			lastCoords = getMouseCoordinates( evt ) ;
+			lastCoords = {'x' : evt.screenX, 'y' : evt.screenY} ;
 
 			for ( var i = 0 ; i < registeredWindows.length ; i++ )
