don't pass drags to anything that's one of our views, but not a ChildView

(ie, scrollbars).
This commit is contained in:
pinkerton%netscape.com 2002-04-26 20:24:02 +00:00
Родитель f00fda8093
Коммит a71652bbb0
1 изменённых файлов: 8 добавлений и 0 удалений

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

@ -1702,6 +1702,14 @@ NS_IMETHODIMP
nsChildView::DragEvent(PRUint32 aMessage, PRInt16 aMouseGlobalX, PRInt16 aMouseGlobalY,
PRUint16 aKeyModifiers, PRBool *_retval)
{
// ensure that this is going to a ChildView (not something else like a
// scrollbar). I think it's safe to just bail at this point if it's not
// what we expect it to be
if ( ![mView isKindOfClass:[ChildView class]] ) {
*_retval = PR_FALSE;
return NS_OK;
}
nsMouseEvent geckoEvent;
geckoEvent.eventStructType = NS_DRAGDROP_EVENT;