Closed Bug 830926 Opened 12 years ago Closed 12 years ago

AZPC TrackTouch x/y displacement should not be rounded to int

Categories

(Core :: Graphics, defect)

ARM
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: romaxa, Assigned: romaxa)

Details

Attachments

(2 files)

Found recently one problem that if page zoom value very high like 8.0 AZPC does scrolling very badly on slow motion. in high zoom and slow motion we getting displacement values < 1 and that get's truncated to 0, result no scrolling https://mxr.mozilla.org/mozilla-central/source/gfx/layers/ipc/AsyncPanZoomController.cpp#758 We should change these values to float
Assignee: nobody → romaxa
Status: NEW → ASSIGNED
Attachment #702459 - Flags: review?(ajones)
OS: Windows 8 → Linux
Hardware: x86 → ARM
Attachment #702459 - Flags: review?(ajones) → review+
!xDisplacement && !yDisplacement may need to be < EPSILON or < 1 device pixel. Needs some testing to make sure this is correct.
this works ok for me.
Attachment #703154 - Flags: review?(bugzilla)
Comment on attachment 703154 [details] [diff] [review] Rounding problem fix for TrackTouch, use epsilon check Review of attachment 703154 [details] [diff] [review]: ----------------------------------------------------------------- Nice, good catch. Just one indentation issue. ::: gfx/layers/ipc/AsyncPanZoomController.cpp @@ +760,1 @@ > timeDelta); Spacing is out of alignment now, just move the second line back one tab.
Attachment #703154 - Flags: review?(bugzilla) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: