W3C home > Mailing lists > Public > public-css-archive@w3.org > March 2017

Re: [csswg-drafts] [cssom-view] It is unclear when offsetX/Y are calculated

From: smaug---- via GitHub <sysbot+gh@w3.org>
Date: Wed, 22 Mar 2017 14:23:24 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-288414280-1490192603-sysbot+gh@w3.org>
Looks like some browsers (webkit/blink ?) treat target.click() somehow as "simulated" and offsetX/Y is always 0. But then var e = new MouseEvent("click"); target.dispatchEvent(); isn't simulated and offsetX/Y isn't 0. It is hard to understand how click() is more simulated than create/dispatchEvent

That all feels very much ad-hoc. @dtapuska do you know what is the story here?

-- 
GitHub Notification of comment by smaug----
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1070#issuecomment-288414280 using your GitHub account
Received on Wednesday, 22 March 2017 14:23:32 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:09 UTC