mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
don't pass drags to anything that's one of our views, but not a ChildView
(ie, scrollbars).
This commit is contained in:
parent
e17f6e1104
commit
84e5053ebb
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user