Closed Bug 575839 Opened 16 years ago Closed 16 years ago

Simple magnify gesture event support on Android

Categories

(Core Graveyard :: Widget: Android, defect)

All
Android
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mwu, Assigned: mwu)

Details

Attachments

(1 file)

No description provided.
Attachment #455015 - Flags: review?(doug.turner)
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+
(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.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: