wordpress-mobile / gutenberg-mobile

Mobile version of Gutenberg - native iOS and Android
GNU General Public License v2.0
259 stars 58 forks source link

Try: Haptic feedback design #1656

Open iamthomasbishop opened 5 years ago

iamthomasbishop commented 5 years ago

Haptics are an often overlooked tool in the WP apps, and I think a number of interactions would benefit from some thoughtful use of feedback. Some ideas:

Note: I am unsure if this is something that we’d use a library for or if we are able to map directly to the native haptics, so that will require some exploration.

jd-alexander commented 4 years ago

If we decide to go ahead and implement this functionality there's a library that does this really well that we could use as inspiration to provide support for this on iOS and presumably Android as well.

iamthomasbishop commented 4 years ago

@jd-alexander That would be great! I don't think it's is a high priority, but when we get a chance to work on it, I think it'd be worth starting with these two interactions:

(*) Note: This probably deserves its own separate ticket, but here's an overview: For selected blocks, we might want to limit the long-press target to the inline toolbar (shown only when a block is selected) because a long-press gesture on some components inside the block — i.e. RichText inputs — would inherit the system behavior (for RichText, long-press would either select some text or position the cursor). In the case of unselected blocks, we could show the sheet upon long-press regardless of what is inside the block.