Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add double-click locking of draw mode #5908

Closed
wants to merge 1 commit into from
Closed

Conversation

brianhatchl
Copy link
Collaborator

refs #5874

@@ -76,6 +77,27 @@ export function uiModes(context) {


var debouncedUpdate = _debounce(update, 500, { leading: true, trailing: true });
var debouncedClick = _debounce(clickModeButton, 300);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@quincylvania Not sure if a debounced function is the best way to support a click and a dblclick on an element, but it works for my click rate.

@quincylvania
Copy link
Collaborator

Thanks, @brianhatchl, I'll take a look!

@quincylvania
Copy link
Collaborator

So at the moment we're targeting #5960 which will actually hide the mode buttons as soon as you enter the drawing mode. Double-clicking wouldn't be a viable interaction at that point, particularly for unlocking the mode.

Alternatively we could have a lock button in the contextual UI. This is far more discoverable anyway and would work better on touchscreens.

screen shot 2019-02-27 at 4 17 59 pm

@bhousel
Copy link
Member

bhousel commented Mar 8, 2019

Closing here, as @quincylvania said we're currently heading towards a contextual secondary menu that will include a lock button.

@bhousel bhousel closed this Mar 8, 2019
@quincylvania quincylvania deleted the lock-drawing-tool branch July 16, 2019 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants