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

Allow holding down mouse button to increment counters #8816

Open
jidanni opened this issue Nov 18, 2021 · 3 comments · May be fixed by #10559
Open

Allow holding down mouse button to increment counters #8816

jidanni opened this issue Nov 18, 2021 · 3 comments · May be fixed by #10559
Labels
field An issue with a field in the user interface help wanted For intermediate contributors, requires investigation or knowledge of iD code usability An issue with ease-of-use or design

Comments

@jidanni
Copy link
Contributor

jidanni commented Nov 18, 2021

Description

Here if I want to use the mouse to get to 24, I need to click 24 times (I gave up halfway.)
How about allowing me to just hold down the mouse button?
Yes, I could just fill it in manually.

Screenshots

20211119T011341

@1ec5
Copy link
Collaborator

1ec5 commented Nov 18, 2021

Continuous stepping is supported by every browser’s native number control, so it makes sense for this custom reimplementation of that control to also support the same behavior.

@1ec5 1ec5 added field An issue with a field in the user interface usability An issue with ease-of-use or design labels Nov 18, 2021
@tyrasd tyrasd added the help wanted For intermediate contributors, requires investigation or knowledge of iD code label Nov 23, 2021
@Deeptanshu-sankhwar
Copy link
Contributor

I am interested to work on this issue. Can I please get this assigned to me.

@Deeptanshu-sankhwar
Copy link
Contributor

I have enabled continuous increment or decrement when holding the mouse down on the buttons by starting a setInterval on mousedown to repeatedly update the value, and clearing the interval on mouseup or mouseleave to stop the updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
field An issue with a field in the user interface help wanted For intermediate contributors, requires investigation or knowledge of iD code usability An issue with ease-of-use or design
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants