[Webkit-unassigned] [Bug 29219] New: Should document.elementFromPoint() takes page scroll into consideration?
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 11 18:30:38 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29219
Summary: Should document.elementFromPoint() takes page scroll
into consideration?
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: xji at chromium.org
I am not sure whether this is a bug or not.
document.elementFromPoint() currently does not take page scroll into
consideration.
If the input parameter (x, y) is the point in viewport, it should be increased
by (document.body.scrollLeft, document.body.scrollTop), then apply zoomFactor,
in order to get the correct point in the document.
Or it is expected user to pass in (x, y) with scoll offset, such as
(event.clientX + document.body.scrollLeft, event.clientY +
document.body.scrollTop)?
--
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