Skip to content

Proposal: Change the pan behavior on the pipeline view to be triggered with a keyboard combination #2192

Closed

Description

@jama22

Context

In the early days of concourse, you can click around freely on the pipeline view to pan around the pipeline. We noticed that if you start your click on a click-able object (like a resource or job) then when you release the mouse it would register as a click into the item vs just a pan. This was captured in #947 and we "fixed it" so that if you start a click in a job but move the mouse, you don't get transported in.

Fast forward a few months later and we start seeing reports of unclickable items #1996. At first we found a Chromium issue and fixed that, but we still saw a bunch of problems. We think it has to do with the issue of folks doing mini-mouse movements while clicking which is incredibly annoying and makes it hard to use Concourse naturally

Proposal

We should change the "pan" behavior so that the user can only engage it while depressing a specific key. This will specifically move the UI into "pan" mode and let us remove the pesky logic of preventing clickthroughs while moving around

Proposal is to require the user to hold down the Spacebar ctrl button in order to force the user into Pan mode.

Activity

  1. xtremerui commented on May 3, 2018

    @xtremerui
    Contributor

    @jama-pivotal based on the way we implement dragging, the available keys during the mousedown event are meta, ctrl, alt and shift refer to mouse events.

    Considering the browser behaviour when pressing above keys and left clicking mouse on a clickable node (job and resource node in our case) listed below, I would suggest using ctrl key as the leading key for dragging.

    ctrl + click ----> as mouse right click (would become the new dragging combo)
    alt + click -----> save as link
    meta + click ---> open link in a new tab
    shift + click ----> open link in a new window

    Comments please?

  2. jama22 commented on May 7, 2018

    @jama22
    Author

    Let's try using ctrl !

  3. self-assigned this
    on May 18, 2018
  4. xtremerui commented on May 18, 2018

    @xtremerui
    Contributor

    Updated: seems click+ctrl is a tough one to play with as in our code we already stop the listener for this combo. That makes alt the next option. Will try alt + click for dragging combo.

  5. added a commit that references this issue on May 18, 2018
  6. jama22 commented on May 23, 2018

    @jama22
    Author

    This has been deployed to our prod environment now and here are some thoughts:

    • There's no UI affordance for users to know to even use the alt key to pan and zoom around. If we push through with this we would need to do some UI improvements to increase awareness of this change
    • alt turns out is a crappy key too because it activates the Toolbar hint (File, Edit, Tools, etc.) in Firefox
    • @vito has rightly pointed out that since our new Spaces UI will eventually take over, this change might not be that necessary

    Suggestion is to revert this change for now @xtremerui so we don't roll this into the next release

  7. stale commented on Jul 31, 2019

    @stale

    Beep boop! This issue has been idle for long enough that it's time to check in and see if it's still important.

    If it is, what is blocking it? Would anyone be interested in submitting a PR or continuing the discussion to help move things forward?

    If no activity is observed within the next week, this issue will be exterminated closed, in accordance with our stale issue process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions