WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
154041
Web Inspector: Limit max and min zoom factor of Inspector
https://bugs.webkit.org/show_bug.cgi?id=154041
Summary
Web Inspector: Limit max and min zoom factor of Inspector
Joseph Pecoraro
Reported
2016-02-09 11:40:56 PST
* SUMMARY Limit max and min zoom factor of Inspector. Currently there is no limit to zoom in and out, which can provide a poor experience.
Attachments
[PATCH] Proposed Fix
(4.24 KB, patch)
2016-02-09 11:47 PST
,
Joseph Pecoraro
bburg
: review+
bburg
: commit-queue-
Details
Formatted Diff
Diff
[PATCH] For Landing
(4.33 KB, patch)
2016-02-09 12:03 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] For Landing
(4.38 KB, patch)
2016-02-09 12:04 PST
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-02-09 11:41:03 PST
<
rdar://problem/24571326
>
Joseph Pecoraro
Comment 2
2016-02-09 11:47:21 PST
Created
attachment 270940
[details]
[PATCH] Proposed Fix
Blaze Burg
Comment 3
2016-02-09 11:56:22 PST
Comment on
attachment 270940
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=270940&action=review
r=me
> Source/WebInspectorUI/ChangeLog:8 > +
Please state what the intended limits are, so I can double-check you did it right ;-)
> Source/WebInspectorUI/ChangeLog:24 > + Remove prevent default which would happen implicitly for these.
This comment confused me. Maybe say 'remove redundant preventDefault calls'
> Source/WebInspectorUI/UserInterface/Base/Main.js:1946 > + const maximumZoom = 2.4;
If we want 6 zoom levels, this should be 2.2. Right? 1 + (.2 * 6) = 2.2
> Source/WebInspectorUI/UserInterface/Base/Main.js:1959 > + const minimumZoom = 0.6;
For 3 zoom levels, it should be 0.4.
Joseph Pecoraro
Comment 4
2016-02-09 12:02:57 PST
> > Source/WebInspectorUI/ChangeLog:8 > > + > > Please state what the intended limits are, so I can double-check you did it > right ;-)
The intended limits are what look good to my eye and roughly matched Safari. I added a comment to the ChangeLog.
> > > Source/WebInspectorUI/UserInterface/Base/Main.js:1946 > > + const maximumZoom = 2.4; > > If we want 6 zoom levels, this should be 2.2. Right? 1 + (.2 * 6) = 2.2
I think its more important to have a good zoom then have 6 levels. Safari went up to 3, so I felt 2.4 was better than 2.2 in terms of comparing the two.
> > Source/WebInspectorUI/UserInterface/Base/Main.js:1959 > > + const minimumZoom = 0.6; > > For 3 zoom levels, it should be 0.4.
I think 0.6 was already looking super small. Our UI starts to break at the seems at this zoom level. Going smaller didn't seem useful.
Joseph Pecoraro
Comment 5
2016-02-09 12:03:23 PST
Created
attachment 270943
[details]
[PATCH] For Landing
Joseph Pecoraro
Comment 6
2016-02-09 12:04:21 PST
Created
attachment 270944
[details]
[PATCH] For Landing
WebKit Commit Bot
Comment 7
2016-02-09 12:52:44 PST
Comment on
attachment 270944
[details]
[PATCH] For Landing Clearing flags on attachment: 270944 Committed
r196325
: <
http://trac.webkit.org/changeset/196325
>
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