Closed
Bug 575839
Opened 16 years ago
Closed 16 years ago
Simple magnify gesture event support on Android
Categories
(Core Graveyard :: Widget: Android, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: mwu, Assigned: mwu)
Details
Attachments
(1 file)
|
4.06 KB,
patch
|
dougt
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Attachment #455015 -
Flags: review?(doug.turner)
Comment 1•16 years ago
|
||
Comment on attachment 455015 [details] [diff] [review]
Simple magnify gesture event generation
+ event.refPoint.x = ((ae->P0().x + ae->P1().x) / 2) - offset.x;
+ event.refPoint.y = ((ae->P0().y + ae->P1().y) / 2) - offset.y;
don't you want (the difference between P0 and P1) / 2?
Attachment #455015 -
Flags: review?(doug.turner) → review+
| Assignee | ||
Comment 2•16 years ago
|
||
(In reply to comment #1)
> (From update of attachment 455015 [details] [diff] [review])
> + event.refPoint.x = ((ae->P0().x + ae->P1().x) / 2) - offset.x;
> + event.refPoint.y = ((ae->P0().y + ae->P1().y) / 2) - offset.y;
>
> don't you want (the difference between P0 and P1) / 2?
Then I'd have to add P0() to get the center point.
| Assignee | ||
Comment 3•16 years ago
|
||
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Updated•4 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•