WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
42987
[chromium] Absolute Mouse coordinates getting lost in translation
https://bugs.webkit.org/show_bug.cgi?id=42987
Summary
[chromium] Absolute Mouse coordinates getting lost in translation
Gene Gutnik
Reported
2010-07-26 11:52:41 PDT
In chromium absolute mouse coordinates getting lost and only adjusted (multiplied by zoom factor) saved. In caused controls and plugins on the zoomed in/out pages to respond incorrectly to mouse events.
Attachments
Added absolute (not multiplied by zoom level) mouse coordinates to WebMouseEvent
(1.81 KB, patch)
2010-07-26 13:49 PDT
,
Gene Gutnik
japhet
: review-
Details
Formatted Diff
Diff
Added bug URL and description to the ChangeLog
(1.90 KB, patch)
2010-07-26 14:09 PDT
,
Gene Gutnik
japhet
: review+
fishd
: commit-queue-
Details
Formatted Diff
Diff
Fix mouse coordinate conversion. WindowX,Y is an absolute mouse coordinates within browser window, x,y - are coordinates relative to the origin of the widget.
(5.29 KB, patch)
2010-07-28 14:05 PDT
,
Gene Gutnik
fishd
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Gene Gutnik
Comment 1
2010-07-26 13:49:33 PDT
Created
attachment 62601
[details]
Added absolute (not multiplied by zoom level) mouse coordinates to WebMouseEvent Added absolute (not multiplied by zoom level) mouse coordinates to WebMouseEvent
Nate Chapin
Comment 2
2010-07-26 13:56:12 PDT
Comment on
attachment 62601
[details]
Added absolute (not multiplied by zoom level) mouse coordinates to WebMouseEvent The code looks fine to me, but you need to update the auto-generated ChangeLog entry with a real bug URL and description (the first line with OOPS! will be auto-corrected by the commit-queue, but the second won't).
Gene Gutnik
Comment 3
2010-07-26 14:09:05 PDT
Created
attachment 62605
[details]
Added bug URL and description to the ChangeLog Thanks Nate, I've added bug URL and description to the ChangeLog
Nate Chapin
Comment 4
2010-07-26 14:11:13 PDT
Comment on
attachment 62605
[details]
Added bug URL and description to the ChangeLog Excellent, thanks! I'm going to wait to actually send this to commit-queue until Darin has had a chance to look at it.
Darin Fisher (:fishd, Google)
Comment 5
2010-07-26 14:44:26 PDT
Comment on
attachment 62605
[details]
Added bug URL and description to the ChangeLog WebKit/chromium/public/WebInputEvent.h:244 + int absoluteX; I think this really deserves some comments to explain the meaning of all of these coordinates. It was possible to guess before, but now it could be pretty confusing to developers. Also, did you confirm that NPAPI plugins still require zoomed coordinates? I'm concerned that we are adding absoluteX,Y when in fact we should just be changing the meaning of windowX,Y.
Gene Gutnik
Comment 6
2010-07-28 14:05:17 PDT
Created
attachment 62875
[details]
Fix mouse coordinate conversion. WindowX,Y is an absolute mouse coordinates within browser window, x,y - are coordinates relative to the origin of the widget. Fix mouse coordinate conversion. WindowX,Y is an absolute mouse coordinates within browser window, x,y - are coordinates relative to the origin of the widget.
Darin Fisher (:fishd, Google)
Comment 7
2010-07-28 16:32:33 PDT
Landed as
http://trac.webkit.org/changeset/64243
nail000
Comment 8
2010-08-03 10:53:53 PDT
This fixes
bug 26424
.
https://bugs.webkit.org/show_bug.cgi?id=26424
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug