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

[Feature Request] Add longpress directives to Vuetify components #8604

Closed
Alex-Mastin opened this issue Aug 18, 2019 · 2 comments
Closed

[Feature Request] Add longpress directives to Vuetify components #8604

Alex-Mastin opened this issue Aug 18, 2019 · 2 comments
Labels
duplicate The issue has already been reported

Comments

@Alex-Mastin
Copy link

Problem to solve

A common way to modify data is to add a button which calls a function to perform some logic. There are certain cases however where adding an edit button would ruin the aesthetic of the application or simply just doesn't make sense. Vuetify does work well as a collection of mobile-friendly UI components, but lacks some of the functionality that mobile UI components commonly have.

Being able to longpress on an element for extra functionality would add a lot of potential for mobile-focused applications, and would make it easier to create progressive web applications which are near indistinguishable from native apps.

Proposed solution

Add a @longpress directive to any components where it makes sense. Components would then have a start and end event where a function could be called.

For example, after longpressing an element, the start event would fire and a dialog could appear with a list of options for the user to choose from.

There are some npm packages available which add this functionality in already, but I think it would be nice to see it included with Vuetify as it would open up a lot of possibilities, and it also is part of the Material Design specs.

@ghost ghost added the S: triage label Aug 18, 2019
@Alex-Mastin
Copy link
Author

Also just found out that you can do window.navigator.vibrate(ms) to vibrate the device, so you could even add vibration on longpress as well.

@johnleider johnleider added framework Issues and Feature Requests that have needs framework-wide. T: feature A new feature and removed S: triage labels Jan 10, 2020
@johnleider johnleider self-assigned this Jan 10, 2020
@johnleider johnleider added this to the v3.0.0 milestone Jan 10, 2020
@johnleider johnleider added this to To do in Vuetify 3 - Titan via automation Nov 30, 2020
@KaelWD KaelWD modified the milestones: v3.0.0, v3.x.x Jun 19, 2021
@KaelWD KaelWD removed this from To do in Vuetify 3 - Titan Jun 19, 2021
@KaelWD KaelWD removed this from the v3.x.x milestone Jan 23, 2024
@KaelWD KaelWD added duplicate The issue has already been reported and removed T: feature A new feature framework Issues and Feature Requests that have needs framework-wide. labels Jan 23, 2024
@KaelWD
Copy link
Member

KaelWD commented Jan 23, 2024

Duplicate of #5322

@KaelWD KaelWD marked this as a duplicate of #5322 Jan 23, 2024
@KaelWD KaelWD closed this as not planned Won't fix, can't repro, duplicate, stale Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The issue has already been reported
Projects
None yet
Development

No branches or pull requests

3 participants