зеркало из https://github.com/mozilla/pjs.git
fix draggable scrollbars on mac
This commit is contained in:
Родитель
ff5f24368c
Коммит
6dd0aa805e
|
@ -287,7 +287,7 @@ var contentAreaDNDObserver = {
|
|||
if (textstring != "")
|
||||
htmlstring = "<a href=\"" + textstring + "\">" + textstring + "</a>";
|
||||
else
|
||||
return;
|
||||
throw Components.results.NS_ERROR_FAILURE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,8 @@
|
|||
* // nsTransferable can determine whether
|
||||
* // or not to accept drop.
|
||||
**/
|
||||
|
||||
/** error codes **/
|
||||
|
||||
var nsDragAndDrop = {
|
||||
|
||||
|
@ -72,7 +74,16 @@ var nsDragAndDrop = {
|
|||
var flavourList = null;
|
||||
|
||||
if (aDragDropObserver.onDragStart)
|
||||
flavourList = aDragDropObserver.onDragStart(aEvent);
|
||||
{
|
||||
try
|
||||
{
|
||||
flavourList = aDragDropObserver.onDragStart(aEvent);
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
return; // not a draggable item, bail!
|
||||
}
|
||||
}
|
||||
|
||||
if (! flavourList || flavourList.length < 1)
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче