Closed
Bug 56602
(TextareaDrag)
Opened 24 years ago
Closed 4 years ago
[FIX] Drag-scrolling to perform selection in a <textarea> causes whole page to scroll
Categories
(Core :: DOM: Editor, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: hyatt, Unassigned)
References
Details
(Keywords: polish, testcase)
Attachments
(4 files)
2.53 KB,
text/html
|
Details | |
2.21 KB,
text/html
|
Details | |
9.79 KB,
patch
|
roc
:
review-
roc
:
superreview-
|
Details | Diff | Splinter Review |
6.36 KB,
patch
|
Details | Diff | Splinter Review |
Get a textarea with a lot of content. Start from the top and drag downwards
to select the text. Keep dragging downwards. Instead of the textarea
scrolling its contents, the entire page will scroll its contents instead!
Reporter | ||
Comment 1•24 years ago
|
||
Observed on Win32.
Comment 2•24 years ago
|
||
assigning to Kin, he knows exactly what the issue is, will have it fixed in no
time, but we are certain pdt would not allow this in for rtm, moving to future
Assignee: beppe → kin
Target Milestone: --- → Future
I just need to do one extra check to see if the enclosing view scrolled at all
before scrolling the parent scrolled views.
Status: NEW → ASSIGNED
Reporter | ||
Comment 4•24 years ago
|
||
I will a= it if we want to try.
Comment 7•24 years ago
|
||
kin, can we get that patch now?
Updated•23 years ago
|
OS: other → All
Noticed this on 1.0.0rc1 on MacOS X (2002041712). The parent scroll seems to
occur only when the mouse goes beyond the bounds of the parent window.
Comment 9•23 years ago
|
||
I found that when in a textarea with more text than the area (so scroll bars
appear/enable), and selecting up, not only does the whole window scroll, the
particular window locks. It does not update it's cursor when in the document
area (so it shows the two-arrow cursor) and accepts no clicks in the document
area. Menus and toolbar buttons are still fully funcitonal. A right-click in
the document area UNFREEZES the window! Other windows in the same process are
unaffected, and processor usage for the mozilla process is also unaffected.
Using the task manager to close the offending window leaves the other windows
undisturbed (though windows tries to close the process due to a false "not
responding").
Observed: Writing a bugzilla comment!
Reproducible: Very predictably: display locks every time.
System:
Athlon 500mHz
448 mb memory
Windows 2000 sp2 srp1
Mozilla build 2002071008
Comment 10•22 years ago
|
||
*** Bug 163203 has been marked as a duplicate of this bug. ***
Comment 11•22 years ago
|
||
So this one's been open almost 2 years now. I start to realize what "will have
it fixed in no time" in comment 2 means..
Comment 12•22 years ago
|
||
Get a textarea with a lot of content. Start from the top
------- Additional Comment #1 From David Hyatt 2000-10-13 23:46 -------
Observed on Win32.and drag downwards
to select the text. Keep dragging downwards. Instead of the textarea
scrolling its contents, the entire page will scroll its contents instead!
------- Additional Comment #2 From beppe@netscape.com 2000-10-17 11:00 -------
assigning to Kin, he knows exactly what the issue is, will have it fixed in no
time, but we are certain pdt would not allow this in for rtm, moving to future
------- Additional Comment #3 From kin@netscape.com 2000-10-17 11:03 -------
I just need to do one extra check to see if the enclosing view scrolled at all
before scrolling the parent scrolled views.
------- Additional Comment #4 From David Hyatt 2000-10-17 11:16 -------
I will a= it if we want to try.
------- Additional Comment #5 From beppe@netscape.com 2000-11-02 14:52 -------
*** Bug 58754 has been marked as a duplicate of this bug. ***
------- Additional Comment #6 From beppe@netscape.com 2000-12-10 18:51 -------
*** Bug 62430 has been marked as a duplicate of this bug. ***
------- Additional Comment #7 From Blake Ross 2000-12-10 19:03 -------
kin, can we get that patch now?
------- Additional Comment #8 From Bill McGonigle 2002-04-24 12:27 -------
Noticed this on 1.0.0rc1 on MacOS X (2002041712). The parent scroll seems to
occur only when the mouse goes beyond the bounds of the parent window.
------- Additional Comment #9 From Ryan Pavlik 2002-07-15 20:32 -------
I found that when in a textarea with more text than the area (so scroll bars
appear/enable), and selecting up, not only does the whole window scroll, the
particular window locks. It does not update it's cursor when in the document
area (so it shows the two-arrow cursor) and accepts no clicks in the document
area. Menus and toolbar buttons are still fully funcitonal. A right-click in
the document area UNFREEZES the window! Other windows in the same process are
unaffected, and processor usage for the mozilla process is also unaffected.
Using the task manager to close the offending window leaves the other windows
undisturbed (though windows tries to close the process due to a false "not
responding").
Observed: Writing a bugzilla comment!
Reproducible: Very predictably: display locks every time.
System:
Athlon 500mHz
448 mb memory
Windows 2000 sp2 srp1
Mozilla build 2002071008
------- Additional Comment #10 From Wesha [H1B looking for job in Chicago]
2002-08-17 07:50 -------
*** Bug 163203 has been marked as a duplicate of this bug. ***
------- Additional Comment #11 From Ere Maijala 2002-08-17 07:56 -------
So this one's been open almost 2 years now. I start to realize what "will have
it fixed in no time" in comment 2 means..
Bug List: (38 of 203) First Last Prev Next Show list Query page
Enter new bug
This is Bugzilla: the Mozilla bug system. For more information about what
Bugzilla is and what it can do, see mozilla.org's bug pages.
Actions: New | Query | bug # | Reports
Comment 13•22 years ago
|
||
I had this happen (on Windows XP Mozilla 1.2) and it appeared to "hang" the
window. I had to try selecting other windows, minimizing and restoring the
window and different key input events before I could recover enough to scroll
the text area back into view and get Mozilla to behave as you would expect it
again (otherwise I had a weird mode where I couldn't use the window and had the
wrong mouse cursor pointer, etc.) Ironically this happened while I was trying
to make a Bugzilla update such as this one I am making now and I wanted copy and
move some text around before the commit.
Comment 14•22 years ago
|
||
This bug is much worse than it sounds in the description for several reasons.
Once you have dragged down to start the autoscrolling, it continues to
autoscroll down on its own until it reaches the bottom of the page. After the
page scrolls it locks in a very strange way. You can't click on links, use the
scrollbar, use the mousewheel, or drag-select any text. You can right-click,
which frees up the mousewheel but doesn't fix the scrollbar. The only way to
really un-freeze the window is to use the keyboard to scroll back up to the text
edit, which is really non-obvious. Someone running into this bug for the first
time might be convinced mozilla had crashed, close it, and lose the text they
had been composing in the text edit.
Comment 15•22 years ago
|
||
Well, when it gets like this -you can't click on any links, you can't use the
whell, etc- pressing ESC cancels the dragging.
Comment 16•22 years ago
|
||
After the parent page is scrolled, pressing page up or page down breaks you out
of the lock up without any real trouble.
Comment 17•22 years ago
|
||
*** Bug 200203 has been marked as a duplicate of this bug. ***
Comment 18•22 years ago
|
||
*** Bug 82162 has been marked as a duplicate of this bug. ***
Comment 19•20 years ago
|
||
Comment 20•20 years ago
|
||
Comment 21•20 years ago
|
||
The problem is more general than <textarea> really. Drag-select-scrolling
should only scroll the view(s) to make visible what is currently being added
to the selection, then it should stop. The correct behaviour can be seen in
IE6/WinXP for example. Taking bug since I have a patch that implements this.
Assignee: kinmoz → mats.palmgren
Status: ASSIGNED → NEW
Flags: blocking1.8a3?
Summary: Drag-scrolling to perform selection in a <textarea> causes whole page to scroll → [FIX] Drag-scrolling to perform selection in a <textarea> causes whole page to scroll
Target Milestone: Future → ---
Comment 22•20 years ago
|
||
Restricts scrolling to only make the view visible according to comment 21.
As far as I can see this is the exact same behaviour that IE6 has, if you want
to try out the testcases with that UA first.
I have changed the 4th parameter of ScrollPointIntoView() to have a different
meaning than before, from "aScrollParentViews" which meant scroll parent views
unrestricted (this was always PR_TRUE), to "aRestrictedScrolling" which means
scroll restricted when PR_TRUE and the old unrestricted scrolling when
PR_FALSE, I hope that is OK.
Comment 23•20 years ago
|
||
This is probably easier to read...
Updated•20 years ago
|
Attachment #154207 -
Flags: superreview?(dbaron)
Attachment #154207 -
Flags: review?(roc)
Comment 24•20 years ago
|
||
*** Bug 189069 has been marked as a duplicate of this bug. ***
Mats, can you make your diffs with -p?
The function GetRestrictedScrollingPoint needs a big comment explaining exactly
what it computes.
'twould be nice if you can do that and resubmit the patch ... thanks
Comment on attachment 154207 [details] [diff] [review]
Patch rev. 1
minusing to get this off my queue until the updated patch is available
Attachment #154207 -
Flags: superreview?(dbaron)
Attachment #154207 -
Flags: superreview-
Attachment #154207 -
Flags: review?(roc)
Attachment #154207 -
Flags: review-
Updated•20 years ago
|
Flags: blocking1.8a3? → blocking1.8a3-
Comment 27•20 years ago
|
||
Mats, can you please ask for reviews for your new patch?
Thanks,
Prog.
Comment 28•19 years ago
|
||
From bug 27315 comment 29:
Similar results are encountered with the multiple select, with an added twist:
- if multiple select is partially visible in the currently displayed area of
the window, scrolling down with the mouse left click and held will select all
visible values, but will not scroll the entire window so that the bottom of the
select input field is visible.
- writing text in a textarea that is partially visible does trigger a scroll so
that the bottom of the textarea becomes visible as the cursor goes down.
(same is valid for going up and sideways but only for input type text and
textarea)
Comment 29•19 years ago
|
||
*** Bug 192422 has been marked as a duplicate of this bug. ***
Comment 30•19 years ago
|
||
Also happens with IFRAMEs (bug 192422, has testcase), so this is a more general
issue, as said comment 21
Updated•18 years ago
|
QA Contact: sujay → editor
Comment 31•14 years ago
|
||
Am I wrong or there's a patch waiting for review since August 2004?
Comment 32•14 years ago
|
||
The patch in question was marked review- on August 9, 2004.
Comment 33•4 years ago
|
||
I think this got fixed in a different bug some years ago...
Assignee: mats → nobody
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•