[Webkit-unassigned] [Bug 76677] AXPress event coordinates are always sent as (0, 0)
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 21 11:42:23 PDT 2013
https://bugs.webkit.org/show_bug.cgi?id=76677
Simon Fraser (smfr) <simon.fraser at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #209222|review? |review-
Flag| |
--- Comment #34 from Simon Fraser (smfr) <simon.fraser at apple.com> 2013-08-21 11:41:50 PST ---
(From update of attachment 209222)
View in context: https://bugs.webkit.org/attachment.cgi?id=209222&action=review
> Source/WebCore/dom/MouseEvent.cpp:289
> + // Handle flipped screen coordinates on Mac.
> + targetScreenY = static_cast<int>(targetElement->document()->domWindow()->screen()->height() - targetScreenY);
For events, this mapping uses NSPoint flipScreenPoint(const NSPoint& screenPoint, NSScreen *screen)
I don't think your code handles screens whose Y offset is not zero.
I'd prefer this screen flipping code to be shared with the code that initializes events.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list