Closed
Bug 951024
Opened 11 years ago
Closed 11 years ago
No haptic feedback/vibration on text selection
Categories
(Firefox for Android Graveyard :: Text Selection, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 29
People
(Reporter: veeti.paananen, Assigned: veeti.paananen)
Details
(Whiteboard: [parity-chrome])
Attachments
(1 file, 3 obsolete files)
1.58 KB,
patch
|
wesj
:
review+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36
Steps to reproduce:
Select text
Actual results:
No vibration on selection start
Expected results:
A slight vibration should occur as with native text areas and fields
Assignee | ||
Comment 1•11 years ago
|
||
Updated•11 years ago
|
Attachment #8348507 -
Flags: review?(wjohnston)
Comment 2•11 years ago
|
||
I see Chrome does this.
Assignee: nobody → veeti.paananen
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
OS: Linux → Android
Hardware: x86_64 → ARM
Whiteboard: [parity-chrome]
Comment 3•11 years ago
|
||
Comment on attachment 8348507 [details] [diff] [review]
patch.diff
Review of attachment 8348507 [details] [diff] [review]:
-----------------------------------------------------------------
::: mobile/android/base/TextSelection.java
@@ +128,5 @@
> if (mActionModeTimerTask != null)
> mActionModeTimerTask.cancel();
> showActionMode(message.getJSONArray("actions"));
> +
> + mVibrator.vibrate(20);
Lets just use the code we have in GeckoAppShell here:
http://mxr.mozilla.org/mozilla-central/source/mobile/android/base/GeckoAppShell.java#1438
i.e. you can make this just a one line change:
GeckoAppShell.performHapticFeedback(true);
Attachment #8348507 -
Flags: review?(wjohnston) → review+
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8348507 -
Attachment is obsolete: true
Assignee | ||
Updated•11 years ago
|
Attachment #8350156 -
Flags: review?(wjohnston)
Comment 6•11 years ago
|
||
Sorry for the delay. Looked into this more. This will trigger even if we're just showing the single select handle. Do we want it then? I can't seem to make this happen on my phone in any apps to test, so I'd just like some detail before we land.
Assignee | ||
Comment 7•11 years ago
|
||
Sorry, but what is a "single select handle" and where is it used?
Comment 8•11 years ago
|
||
Sorry. thats just words I make up in my head :)
I was trying to describe the little arrow that shows up when you tap in a textbox that already has text in it and points to where the blinking cursor is. We show the action mode whenever that little arrow is shown as well..
Comment 9•11 years ago
|
||
(In reply to Wesley Johnston (:wesj) from comment #8)
> tap in a textbox that already has text in it
err... I meant "tap in a textbox that is already focused (i.e. tap in a text box twice)"
Assignee | ||
Comment 10•11 years ago
|
||
Oh, I see. I don't think that's desirable and it definitely doesn't match the native behavior. How's this?
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #8350156 -
Attachment is obsolete: true
Attachment #8350156 -
Flags: review?(wjohnston)
Attachment #8356594 -
Flags: review?(wjohnston)
Comment 12•11 years ago
|
||
Comment on attachment 8356594 [details] [diff] [review]
951024.patch
Review of attachment 8356594 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks :)
Attachment #8356594 -
Flags: review?(wjohnston) → review+
Updated•11 years ago
|
Keywords: checkin-needed
Comment 13•11 years ago
|
||
Keywords: checkin-needed
Whiteboard: [parity-chrome] → [parity-chrome][fixed-in-fx-team]
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [parity-chrome][fixed-in-fx-team] → [parity-chrome]
Target Milestone: --- → Firefox 29
Updated•4 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•