Closed
Bug 990740
Opened 11 years ago
Closed 11 years ago
Make eyedropper movement smoother
Categories
(DevTools :: Inspector, defect)
DevTools
Inspector
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 31
People
(Reporter: harth, Assigned: harth)
Details
Attachments
(1 file, 1 obsolete file)
967 bytes,
patch
|
fitzgen
:
review+
|
Details | Diff | Splinter Review |
On Linux especially (tried on Ubuntu), the eyedropper doesn't move smoothly as you move the mouse around. This is because of the code that's being called on each mouse move. The code has a few steps: drawing the area of the window to the panel, drawing a grid over it, extracting the center pixel color and displaying that.
Two areas with potential room for improvement on Linux are the call to getImageData() to get the color of the center pixel, and the call to draw a grid on the canvas, which could be replaced by an overlayed grid image.
Another option if we can't optimize is to just ignore every other mousemove event. I don't know the implications of that, but it's worth looking into.
Assignee | ||
Comment 1•11 years ago
|
||
Here's a patch that will ignore every other mouse move. It makes it less smooth on my OS X (so we wouldn't do it on that), but I suspect it might alleviate the jumping around on Linux.
Assignee: nobody → fayearthur
Assignee | ||
Comment 2•11 years ago
|
||
Just tried this out on Linux, and it's much better with this. This will check for Linux, but we already have to do this elsewhere in the eyedropper.
Attachment #8412790 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8413050 -
Flags: review?(nfitzgerald)
Updated•11 years ago
|
Attachment #8413050 -
Flags: review?(nfitzgerald) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [fixed-in-fx-team]
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 31
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•