Closed
Bug 1046498
Opened 11 years ago
Closed 11 years ago
[Text Selection] Selection carets is jumpy when dragging caret.
Categories
(Core :: DOM: Selection, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: mtseng, Assigned: mtseng)
References
Details
Attachments
(2 files, 1 obsolete file)
|
204 bytes,
text/html
|
Details | |
|
4.34 KB,
patch
|
Details | Diff | Splinter Review |
In the multi-line textarea, when we drag selection caret to adjust selection range, the carets is jumpy when we drag in the between of two lines.
| Assignee | ||
Comment 1•11 years ago
|
||
I found that we'll select background frame when the cursor in the between of two lines and it causes jumpy. So I constrain frame to selction's anchor subtree.
Comment 2•11 years ago
|
||
Comment on attachment 8467664 [details] [diff] [review]
Constrain frame to anchor subtree when dragging selection caret.
Review of attachment 8467664 [details] [diff] [review]:
-----------------------------------------------------------------
::: layout/base/SelectionCarets.cpp
@@ +616,5 @@
> + nsIFrame* caretFocusFrame = GetCaretFocusFrame();
> + nsRefPtr<nsFrameSelection> fs = caretFocusFrame->GetFrameSelection();
> +
> + nsresult result;
> + nsIFrame *newFrame = 0;
Nit: nsIFrame* newFrame = nullptr;
Attachment #8467664 -
Flags: review?(roc) → review+
| Assignee | ||
Comment 3•11 years ago
|
||
Update to address comment.
Try run: https://tbpl.mozilla.org/?tree=Try&rev=5439744d132f
Attachment #8467664 -
Attachment is obsolete: true
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 4•11 years ago
|
||
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•