copy was copying too much on ender-lite. thiswill reduce the volume of autocopies to only copy when mouse ups are called. r=hyatt 34896

This commit is contained in:
mjudge%netscape.com 2000-06-09 05:11:12 +00:00
Родитель a5bc4dbdf1
Коммит 83ae7c1984
2 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -120,9 +120,9 @@ nsAutoCopyService::NotifySelectionChanged(nsIDOMDocument *aDoc, nsIDOMSelection
mClipboard = do_GetService(kCClipboardCID, &rv);
if (NS_FAILED(rv))
return rv;
}
if (DRAGGING == aReason)
return NS_OK;//dont care if we are still dragging.
}
if (!(aReason & nsIDOMSelectionListener::MOUSEUP_REASON))
return NS_OK;//dont care if we are still dragging. or if its not from a mouseup
PRBool collapsed;
if (!aDoc || !aSel || NS_FAILED(aSel->GetIsCollapsed(&collapsed)) || collapsed) {
#ifdef DEBUG_CLIPBOARD

Просмотреть файл

@ -120,9 +120,9 @@ nsAutoCopyService::NotifySelectionChanged(nsIDOMDocument *aDoc, nsIDOMSelection
mClipboard = do_GetService(kCClipboardCID, &rv);
if (NS_FAILED(rv))
return rv;
}
if (DRAGGING == aReason)
return NS_OK;//dont care if we are still dragging.
}
if (!(aReason & nsIDOMSelectionListener::MOUSEUP_REASON))
return NS_OK;//dont care if we are still dragging. or if its not from a mouseup
PRBool collapsed;
if (!aDoc || !aSel || NS_FAILED(aSel->GetIsCollapsed(&collapsed)) || collapsed) {
#ifdef DEBUG_CLIPBOARD