speedscope icon indicating copy to clipboard operation
speedscope copied to clipboard

UX: Timeline mouse cursor

Open guettli opened this issue 5 years ago • 6 comments

This is related to #240. An easier way to understand that you can set the viewport in the upper part.

Up to now the mouse cursor is like in this screenshot:

image

It would be more intuitive if the cursor would look like this: https://www.iconfinder.com/icons/927852/cursor_design_development_drag_pointer_select_icon

guettli avatar Nov 25 '19 10:11 guettli

Hi @guettli, thanks for the suggestion!

At present, all of the cursors used in speedscope are default browser cursors. I haven't spent any time investigating custom cursors for speedscope, but I agree this icon isn't particularly good at indicating what the interaction is going to do.

jlfwong avatar Nov 25 '19 21:11 jlfwong

Here are the css cursor styles which are available by default: https://developer.mozilla.org/de/docs/Web/CSS/cursor

I think "crosshair" would fit: From chrome: image

guettli avatar Nov 26 '19 12:11 guettli

Ah, I originally didn't choose the crosshair one because the I thought the crosshair would suggest that the range being dragged was two dimensional. the minimap dragging only actually sets the range on a single axis though. What do you think? Maybe the crosshair is still clearer.

jlfwong avatar Nov 26 '19 19:11 jlfwong

Yes, I think a crosshair is more intuitive. I hardly never seen the two headed arrow symbol.

guettli avatar Nov 27 '19 08:11 guettli

@guettli I'd accept a PR to change this cursor if you'd like to do it! The relevant code is here: https://github.com/jlfwong/speedscope/blob/bdd9301c59f29c105762b6460d731438c670d705/src/views/flamechart-minimap-view.tsx#L363-L375

jlfwong avatar Nov 27 '19 19:11 jlfwong

Sorry, my JS knowledge is limited and I have no developer to delegate this at the moment.

guettli avatar Nov 28 '19 09:11 guettli