Open Bug 277402 Opened 20 years ago Updated 2 years ago

textarea does not scroll during drag & drop

Categories

(Core :: Layout: Form Controls, defect)

x86
All
defect

Tracking

()

People

(Reporter: hbarbarossa, Unassigned)

References

Details

Attachments

(2 files)

When you are dragging an item (selected text, bookmark, etc) within a window
with scrolling bars or on a scrollable menu, the scrolling would happen
automatically prior to 1.7.5 but now it won't. Moreover, mouse scrolling wheels
are disabled on mouse-down, so you can't perform the necessary scrolling
manually. Same is good for Up/Down/PgUp/PgDown keys.

Two examples are the Bookmarks menu (NOT Bookmark Manager) and any editable
textbox like this one I'm using to report the bug.

To reproduce in the Bookmarks menu, you need to have a bokmark folder that will
span higher space than one screen. Scroll down, click and drag a bokmark item
upwards or vice versa (try dragging an item located in the upper section
downwards). You will get stuck at the scrolling position.

To reproduce in a textbox, enter some content long enough to activate the
vertical scrolling, then highlight some text either at the upper or lower
sections and try dragging it downwards or upwards. You will get stuck at the
scrolling position.

Reproducable: Always, except in the Bookmark Manager.

See also the following images:

<http://www.piratescrossroads.com/~hbarbarossa/misc/scrollex1.png>
<http://www.piratescrossroads.com/~hbarbarossa/misc/scrollex2.png>
Notice the cursor, which is stuck at the end of the "screen".
Notice the [added] coloured arrow that marks the sticking point.
Keywords: qawanted
I see the problem with textarea with linux trunk build 2005033005 and 1.7.5, but
I also see it with 1.7.3 and 1.4.  I cannot drag/drop bookmarks in the menu at all.

I'm going to morph this into a bug about the textarea.  If you can still
reproduce the bookmarks problem, please file a separate bug.
Assignee: general → nobody
Status: UNCONFIRMED → NEW
Component: General → Layout: Form Controls
Ever confirmed: true
Keywords: qawanted
OS: Windows XP → All
Product: Mozilla Application Suite → Core
QA Contact: general → layout.form-controls
Summary: Scrolling problem in 1.7.5 (didn't exist in 1.7.3) → textarea does not scroll during drag & drop
Version: 1.7 Branch → Trunk
Following the hack for bug 41708 on scrolling viewports, it is possible to artificially scroll the bookmark menus by registering ondragover listeners on the arrowscrollboxes:


<binding id="arrowscrollbox" extends="chrome://global/content/bindings/scrollbox.xml#scrollbox-base">
  <content>
    <xul:autorepeatbutton
-       oncommand="this.parentNode.scrollByIndex(-1); event.preventBubble();"/>
+       oncommand="this.parentNode.scrollByIndex(-1); event.preventBubble();"
+       ondragover="this.parentNode.scrollByIndex(-1); event.preventBubble();"/>
    <xul:scrollbox>
      <children/>
    </xul:scrollbox>
    <xul:autorepeatbutton
-       oncommand="this.parentNode.scrollByIndex(1); event.preventBubble();"/>
+       oncommand="this.parentNode.scrollByIndex(1); event.preventBubble();"
+       ondragover="this.parentNode.scrollByIndex(1); event.preventBubble();"/>
  </content>
This also occurs in the FireFox 2 beta (2.0b1) on Mac OS 10.4.7 (PowerPC)
Um... This is not textarea specific, really.  This is just bug 41708 with a different scrollframe.
Depends on: 41708

It looks like, this bug was fixed for <textarea> (cannot reproduce).
But, it is reproducible for <input> element with a lot of text.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: