mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Fixing coords for click event since by not setting them at all before they were unlikely to be correct.
This commit is contained in:
parent
579d1878c8
commit
a5de3b4554
@ -393,6 +393,7 @@ NS_METHOD nsDOMEvent::GetRangeOffset(PRInt32* aRangeOffset)
|
||||
actualOffset,
|
||||
*aRangeOffset,
|
||||
endOffset))) {
|
||||
*aRangeOffset += actualOffset;
|
||||
NS_IF_RELEASE(parent);
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -585,6 +585,8 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
||||
//fire click
|
||||
event.eventStructType = NS_MOUSE_EVENT;
|
||||
event.widget = nsnull;
|
||||
event.point.x = aEvent->point.x;
|
||||
event.point.y = aEvent->point.y;
|
||||
|
||||
if (nsnull != mouseContent) {
|
||||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||
|
@ -393,6 +393,7 @@ NS_METHOD nsDOMEvent::GetRangeOffset(PRInt32* aRangeOffset)
|
||||
actualOffset,
|
||||
*aRangeOffset,
|
||||
endOffset))) {
|
||||
*aRangeOffset += actualOffset;
|
||||
NS_IF_RELEASE(parent);
|
||||
return NS_OK;
|
||||
}
|
||||
|
@ -585,6 +585,8 @@ nsEventStateManager::CheckForAndDispatchClick(nsIPresContext& aPresContext,
|
||||
//fire click
|
||||
event.eventStructType = NS_MOUSE_EVENT;
|
||||
event.widget = nsnull;
|
||||
event.point.x = aEvent->point.x;
|
||||
event.point.y = aEvent->point.y;
|
||||
|
||||
if (nsnull != mouseContent) {
|
||||
ret = mouseContent->HandleDOMEvent(aPresContext, &event, nsnull, NS_EVENT_FLAG_INIT, aStatus);
|
||||
|
Loading…
Reference in New Issue
Block a user