dashboards icon indicating copy to clipboard operation
dashboards copied to clipboard

Scroll added/moved cells when appropriate

Open dalogsdon opened this issue 9 years ago • 1 comments

From comments in #205:

https://github.com/jupyter-incubator/dashboards/pull/205#issuecomment-201970944 - @parente: Right now, if I click to add a cell to its notebook position, I have to scroll around to find it and finish sizing it. In this case, I want the view to scroll automatically to the cell location in the layout. That said, sometimes I'm down in the hidden cells adding a bunch of them by click, click, clicking repeatedly. In this case, I do not want the view to scroll. If we do #2, I think I'd want the view to scroll to track the cell I clicked + on to move within the layout. I don't have a great idea on how to handle all these cases to perfection that doesn't also violate the rule of least surprise. Just brain dumping.

https://github.com/jupyter-incubator/dashboards/pull/205#issuecomment-202458765 - @jhpedemonte: My suggestion was to use a keyboard modifier on the buttons:

  • Default behavior: Viewport stays at current position when clicking add. This allows adding multiple.
  • Shift + click: Viewport scrolls to position of added cell.

dalogsdon avatar Mar 28 '16 17:03 dalogsdon

My suggestion was to use a keyboard modifier on the buttons:

Makes sense to me. Doc them in the More Info?

parente avatar Mar 28 '16 20:03 parente