зеркало из https://github.com/mozilla/pjs.git
don't pass drags to anything that's one of our views, but not a ChildView
(ie, scrollbars).
This commit is contained in:
Родитель
f00fda8093
Коммит
a71652bbb0
|
@ -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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче