WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
151071
Web Inspector: Support Gesture Events to zoom in / out of the Timeline
https://bugs.webkit.org/show_bug.cgi?id=151071
Summary
Web Inspector: Support Gesture Events to zoom in / out of the Timeline
Joseph Pecoraro
Reported
2015-11-09 17:17:28 PST
* SUMMARY Support Gesture Events to zoom in / out of the Timeline. Use the gesture event's scale property to scale the secondsPerPixel value. Center like MouseWheel events around the mouse position. * NOTES - This still pins to the edge if an edge is available for both mouse wheel and now gesture events. That feels funny, we should make any zoom IN unpin from the edge and just zoom in where the mouse is. Handle this separately.
Attachments
[PATCH] Proposed Fix
(4.11 KB, patch)
2015-11-09 17:18 PST
,
Joseph Pecoraro
timothy
: review+
bburg
: commit-queue-
Details
Formatted Diff
Diff
[PATCH] For Landing
(4.10 KB, patch)
2015-11-09 19:42 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2015-11-09 17:17:46 PST
<
rdar://problem/23474383
>
Joseph Pecoraro
Comment 2
2015-11-09 17:18:43 PST
Created
attachment 265125
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 3
2015-11-09 17:20:27 PST
***
Bug 151061
has been marked as a duplicate of this bug. ***
Matt Baker
Comment 4
2015-11-09 17:52:44 PST
Comment on
attachment 265125
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=265125&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:494 > + let newSecondsPerPixel = this._gestureStartDurationPerPixel * (1 / scale);
let newSecondsPerPixel = this._gestureStartDurationPerPixel / scale;
Joseph Pecoraro
Comment 5
2015-11-09 19:42:40 PST
Created
attachment 265139
[details]
[PATCH] For Landing
Joseph Pecoraro
Comment 6
2015-11-09 19:43:49 PST
(In reply to
comment #4
)
> Comment on
attachment 265125
[details]
> [PATCH] Proposed Fix > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=265125&action=review
> > > Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:494 > > + let newSecondsPerPixel = this._gestureStartDurationPerPixel * (1 / scale); > > let newSecondsPerPixel = this._gestureStartDurationPerPixel / scale;
Heh, yeah. I think this is a bit harder to reason about when you read the line of code. In any case, I made this change.
WebKit Commit Bot
Comment 7
2015-11-09 20:39:22 PST
Comment on
attachment 265139
[details]
[PATCH] For Landing Clearing flags on attachment: 265139 Committed
r192198
: <
http://trac.webkit.org/changeset/192198
>
Blaze Burg
Comment 8
2015-11-10 06:46:00 PST
Comment on
attachment 265125
[details]
[PATCH] Proposed Fix Clearing stale cq? flag.
Blaze Burg
Comment 9
2015-11-10 06:50:39 PST
Comment on
attachment 265139
[details]
[PATCH] For Landing View in context:
https://bugs.webkit.org/attachment.cgi?id=265139&action=review
> Source/WebInspectorUI/UserInterface/Views/TimelineOverview.js:429 > + // Ignore wheel events while handing gestures.
Nit: handling
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