WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
113138
Web Inspector: OverviewGrid. Dragged window may change its width due to accumulating rounding error
https://bugs.webkit.org/show_bug.cgi?id=113138
Summary
Web Inspector: OverviewGrid. Dragged window may change its width due to accum...
Ilya Tikhonovsky
Reported
2013-03-23 09:51:03 PDT
use case: record a timeline select small window in overview pane drag it slowly patch to follow
Attachments
Patch
(2.76 KB, patch)
2013-03-23 09:57 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Patch
(4.61 KB, patch)
2013-03-26 01:06 PDT
,
Ilya Tikhonovsky
pfeldman
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ilya Tikhonovsky
Comment 1
2013-03-23 09:57:48 PDT
Created
attachment 194709
[details]
Patch
Pavel Feldman
Comment 2
2013-03-25 01:07:53 PDT
Comment on
attachment 194709
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=194709&action=review
> Source/WebCore/ChangeLog:8 > + The old version had problem with rounding because it recalculates the window size on each event.
Why would this be a problem?
> Source/WebCore/inspector/front-end/OverviewGrid.js:320 > + var delta = (event.pageX - this._dragStartPoint) / this._parentElement.clientWidth;
I am not sure we need more complexity in this code.
Ilya Tikhonovsky
Comment 3
2013-03-26 01:06:13 PDT
Created
attachment 195025
[details]
Patch
Ilya Tikhonovsky
Comment 4
2013-03-26 01:16:33 PDT
(In reply to
comment #2
)
> (From update of
attachment 194709
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=194709&action=review
> > > Source/WebCore/ChangeLog:8 > > + The old version had problem with rounding because it recalculates the window size on each event. > > Why would this be a problem?
As we found in the offline discussion the rounding was the root of problem.
> > > Source/WebCore/inspector/front-end/OverviewGrid.js:320 > > + var delta = (event.pageX - this._dragStartPoint) / this._parentElement.clientWidth; > > I am not sure we need more complexity in this code.
I eliminated moveWindow code so the code became clear.
Ilya Tikhonovsky
Comment 5
2013-03-26 04:26:06 PDT
Committed
r146866
: <
http://trac.webkit.org/changeset/146866
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug