Closed
Bug 961636
Opened 10 years ago
Closed 10 years ago
Enable APZ in Firefox OS makes resize dispatched twice when 1. app starts up and 2. user rotates the device at first time
Categories
(Core :: Panning and Zooming, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 997101
People
(Reporter: johnhu, Unassigned)
References
()
Details
Attachments
(4 files)
While debugging bug 831890, I found the resize event of window object will be dispatched twice at the first rotation. But after the first rotation, it is only dispatched once per rotation. Device: Inari Version: Master, PVT: 20140119040203
Reporter | ||
Comment 1•10 years ago
|
||
Reporter | ||
Comment 2•10 years ago
|
||
In this testing app, it shows "please rotate your device to see result." at the screen. When user rotates the device once, it increases the resizeCount and shows "resizeCount: $1".
Reporter | ||
Comment 3•10 years ago
|
||
Wihtout APZ enabled, it works correctly. After APZ enabled, we may observe: 1. the resize is called twice while app started 2. the resize is called twice when the first rotation 3. the resize is called once when the 2+ rotations.
Reporter | ||
Updated•10 years ago
|
Summary: Enable APZ in Firefox OS makes resize dispatched twice when user rotates the device → Enable APZ in Firefox OS makes resize dispatched twice when 1. app starts up and 2. user rotates the device at first time
Updated•10 years ago
|
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → All
Comment 4•10 years ago
|
||
Adding standalone testcase extracted from test app
Comment 5•10 years ago
|
||
On the latest master code, when I run the app or use the standalone test case, I see the resize called twice on app startup, but then only once all rotations. So part of this bug has already been fixed.
Comment 6•10 years ago
|
||
And the patch on bug 997101 makes the initial load only have one resize.
Updated•7 years ago
|
You need to log in
before you can comment on or make changes to this bug.
Description
•