RESOLVED FIXED 76917
Web Inspector: "Dock to right" shouldn't be in the settings dialog
https://bugs.webkit.org/show_bug.cgi?id=76917
Summary Web Inspector: "Dock to right" shouldn't be in the settings dialog
Nico Weber
Reported 2012-01-24 08:28:51 PST
I read that the inspector now supports docking to the right, and it took me forever to figure out how to do it. I tried to just drag it over, option-clicking on the "dock" button, long clicking on the dock button, right-clicking on the dock button. Putting this into the settings dialog feels like bad UI to me. (Unrelated mini-ran: The settings dialog is already starting to look for a dumping ground of decisions that shouldn't be exposed to the user.)
Attachments
Context menu mockup (11.42 KB, image/png)
2012-05-01 05:20 PDT, Nikita Vasilyev
no flags
Three (radio) buttons (1.54 KB, image/png)
2012-05-01 05:27 PDT, Nikita Vasilyev
no flags
Patch (22.59 KB, patch)
2012-07-04 03:09 PDT, Pavel Feldman
vsevik: review+
[IMAGE] with patch applied (865 bytes, image/png)
2012-07-04 03:09 PDT, Pavel Feldman
no flags
[IMAGE] with patch applied (1023 bytes, image/png)
2012-07-04 03:10 PDT, Pavel Feldman
no flags
Pavel Feldman
Comment 1 2012-01-24 08:52:05 PST
Where would you expect to see it?
Nico Weber
Comment 2 2012-01-24 09:02:43 PST
I tried dragging the docked devtools titlebar to the right, option-clicking on the "dock" button at the bottom left corner of the devtools, long clicking on the dock button, right-clicking on the dock button.
Timothy Hatcher
Comment 3 2012-01-24 09:39:49 PST
I expect the option key as well. Holding option should change the button glyph before you press it to show it will do something different.
Pavel Feldman
Comment 4 2012-01-25 01:44:26 PST
(In reply to comment #3) > I expect the option key as well. Holding option should change the button glyph before you press it to show it will do something different. I like this one, but I think it is also not discoverable.
Nico Weber
Comment 5 2012-01-25 08:18:30 PST
(In reply to comment #4) > (In reply to comment #3) > > I expect the option key as well. Holding option should change the button glyph before you press it to show it will do something different. > > I like this one, but I think it is also not discoverable. It's no worse than the current behavior, and keeps the settings menu slightly less cluttered. But up to you :-)
Nikita Vasilyev
Comment 6 2012-05-01 05:20:48 PDT
Created attachment 139612 [details] Context menu mockup (In reply to comment #3) > I expect the option key as well. Holding option should change the button glyph before you press it to show it will do something different. +1. Adobe Photoshop uses it a lot and I like it. Context menu is also a viable option, I think we can have both.
Nikita Vasilyev
Comment 7 2012-05-01 05:27:11 PDT
Created attachment 139613 [details] Three (radio) buttons One more option. Props: — dead-easy to discover — One click to switch the mode Cons: — Clutters a bottom bar
Alexander Pavlov (apavlov)
Comment 8 2012-06-08 00:59:22 PDT
*** Bug 88559 has been marked as a duplicate of this bug. ***
Alexander Pavlov (apavlov)
Comment 9 2012-06-08 01:00:18 PDT
Bug 88559 requests a shortcut for toggling the Inspector docking side.
sam
Comment 10 2012-06-08 04:34:45 PDT
*** Bug 88559 has been marked as a duplicate of this bug. ***
Nikita Vasilyev
Comment 11 2012-06-08 04:51:26 PDT
> (In reply to comment #3) > > I expect the option key as well. Holding option should change the button glyph before you press it to show it will do something different. > > I like this one, but I think it is also not discoverable. At least it makes switching between dock to right and dock to bottom much quicker. I’d love to have a feedback. I’m eager to implement my first mockup as soon as we agree on it.
Pavel Feldman
Comment 12 2012-06-08 04:53:36 PDT
I have a wip patch that implements behavior in comments 2-5. Will attach once I am back from vacations. (Tomorrow). I did not upload it initially because Chrome loses focus upon toggling dock side and it is especially noticable when using such action.
sam
Comment 13 2012-06-08 05:31:25 PDT
*** Bug 79923 has been marked as a duplicate of this bug. ***
Nikita Vasilyev
Comment 14 2012-07-03 07:43:53 PDT
Any progress here?
Pavel Feldman
Comment 15 2012-07-03 08:32:40 PDT
(In reply to comment #14) > Any progress here? I am facing another limitation here: when focus is elsewhere, pressing Cmd while hovering over the button can't be tracked. So it sounds like we need a different UX solution here. What was yours?
Nikita Vasilyev
Comment 16 2012-07-03 08:41:23 PDT
(In reply to comment #15) > (In reply to comment #14) > > Any progress here? > > I am facing another limitation here: when focus is elsewhere, pressing Cmd while hovering over the button can't be tracked. So it sounds like we need a different UX solution here. What was yours? We can track Cmd on click: addEventListener("click", function(event) { event.metaKey } When focus is elsewhere pressing Cmd won’t change the icon but I think it’s okay.
Pavel Feldman
Comment 17 2012-07-03 08:53:48 PDT
> When focus is elsewhere pressing Cmd won’t change the icon but I think it’s okay. I don't really think it is. The whole point of the meta thing is its discoverability... I am thinking of implementing a long click that would change it to dock-to-side. Wdyt?
Pavel Feldman
Comment 18 2012-07-03 08:55:12 PDT
(In reply to comment #17) > > When focus is elsewhere pressing Cmd won’t change the icon but I think it’s okay. > > I don't really think it is. The whole point of the meta thing is its discoverability... I am thinking of implementing a long click that would change it to dock-to-side. Wdyt? I.e. you hold mouse down and dock to side icon pops up above the dock one in 0.5 sec...
Nikita Vasilyev
Comment 19 2012-07-03 09:04:13 PDT
(In reply to comment #18) > (In reply to comment #17) > > > When focus is elsewhere pressing Cmd won’t change the icon but I think it’s okay. > > > > I don't really think it is. The whole point of the meta thing is its discoverability... I am thinking of implementing a long click that would change it to dock-to-side. Wdyt? > > I.e. you hold mouse down and dock to side icon pops up above the dock one in 0.5 sec... I haven’t used much click-and-hold on a desktop so I need to use it for some time to share an opinion. Worth trying anyway.
Pavel Feldman
Comment 20 2012-07-04 03:09:04 PDT
Pavel Feldman
Comment 21 2012-07-04 03:09:49 PDT
Created attachment 150754 [details] [IMAGE] with patch applied
Pavel Feldman
Comment 22 2012-07-04 03:10:08 PDT
Created attachment 150755 [details] [IMAGE] with patch applied
Nikita Vasilyev
Comment 23 2012-07-04 03:57:26 PDT
Looks good overall. I have a small suggestion though: I’ve been using it for a few minutes and I’ve noticed that I click on the icon then instantly move mouse cursor a bit higher expecting the new extended icon to show up. But it doesn’t. Wouldn’t it be better to show the extended icon right after a click yet make it invisible? We could make it visible (possibly, with a nice transition) after an half of a second.
Pavel Feldman
Comment 24 2012-07-04 05:22:43 PDT
(In reply to comment #23) > Looks good overall. I have a small suggestion though: > > I’ve been using it for a few minutes and I’ve noticed that I click on the icon then instantly move mouse cursor a bit higher expecting the new extended icon to show up. But it doesn’t. Wouldn’t it be better to show the extended icon right after a click yet make it invisible? We could make it visible (possibly, with a nice transition) after an half of a second. It would flicker for existing dock/undock users then. Lets land it as is and see if this makes users happy.
Vsevolod Vlasov
Comment 25 2012-07-04 05:25:48 PDT
Comment on attachment 150753 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=150753&action=review > Source/WebCore/inspector/front-end/StatusBarButton.js:230 > + if (e.which !== 1) I would remove this check and remove button options if right mouse button was released as well.
Pavel Feldman
Comment 26 2012-07-04 05:54:06 PDT
Nikita Vasilyev
Comment 27 2012-07-04 06:34:05 PDT
(In reply to comment #24) > (In reply to comment #23) > > Looks good overall. I have a small suggestion though: > > > > I’ve been using it for a few minutes and I’ve noticed that I click on the icon then instantly move mouse cursor a bit higher expecting the new extended icon to show up. But it doesn’t. Wouldn’t it be better to show the extended icon right after a click yet make it invisible? We could make it visible (possibly, with a nice transition) after an half of a second. > > It would flicker for existing dock/undock users then. Lets land it as is and see if this makes users happy. This is what I meant http://www.screenr.com/20Z8
Pavel Feldman
Comment 28 2012-07-04 06:56:53 PDT
> This is what I meant http://www.screenr.com/20Z8 Reduced timeout to 200ms. Is this better? The idea is that the button acts as the PS tool chooser or a long press mobile button. I think people will figure it out. Note that we assume that people toggle between bottom / right mode less often than dock / undock the pane. If we learn that this is not the case, we'll need to tweak the defaults / behavior.
Note You need to log in before you can comment on or make changes to this bug.