<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>drag and drop message to hidden folder</title> 
  <pubDate>Fri, 10 Apr 2026 17:02:45 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/8989</link> 
  <atom:link rel="self" type="application/rss+xml" title="drag and drop message to hidden folder" href="https://bugs.horde.org/ticket/8989/rss" /> 
  <description>drag and drop message to hidden folder</description> 
 
   
   
  <item> 
   <title>Firefox 3.5.9 and 3.6.3

I can&#039;t drag and drop a message t</title> 
   <description>Firefox 3.5.9 and 3.6.3

I can&#039;t drag and drop a message to any of the last folders. when dragging the message, the folder list automatically scroll back up to the beginning of the folder list.

The attached video will probably explain better.</description> 
   <pubDate>Wed, 28 Apr 2010 09:04:41 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58642</link> 
  </item> 
   
  <item> 
   <title>&gt; Firefox 3.5.9 and 3.6.3
&gt;
&gt; I can&#039;t drag and drop a mess</title> 
   <description>&gt; Firefox 3.5.9 and 3.6.3
&gt;
&gt; I can&#039;t drag and drop a message to any of the last folders. when 
&gt; dragging the message, the folder list automatically scroll back up to 
&gt; the beginning of the folder list.
&gt;
&gt; The attached video will probably explain better.
</description> 
   <pubDate>Wed, 28 Apr 2010 09:06:53 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58643</link> 
  </item> 
   
  <item> 
   <title>Works for me.</title> 
   <description>Works for me.</description> 
   <pubDate>Wed, 28 Apr 2010 17:20:38 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58659</link> 
  </item> 
   
  <item> 
   <title>For further debugging information, please read the &#039;AJAX Tro</title> 
   <description>For further debugging information, please read the &#039;AJAX Troubleshooting&#039; section in imp/docs/INSTALL.</description> 
   <pubDate>Wed, 28 Apr 2010 17:43:35 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58661</link> 
  </item> 
   
  <item> 
   <title>&gt; For further debugging information, please read the &#039;AJAX </title> 
   <description>&gt; For further debugging information, please read the &#039;AJAX 
&gt; Troubleshooting&#039; section in imp/docs/INSTALL.

I don&#039;t see any error in apache/horde logs file. 
Firebug seems to be happy and horde caches are disabled.
Firefox&#039;s cache was cleared as well as user&#039;s prefs.

I&#039;ll see if I can find something but I doubt it.</description> 
   <pubDate>Thu, 29 Apr 2010 07:26:06 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58664</link> 
  </item> 
   
  <item> 
   <title>Definitely looks more like a browser/OS/UI bug than an issue</title> 
   <description>Definitely looks more like a browser/OS/UI bug than an issue with the JS code.  (For the record, I tested with FF 3.6 on Ubuntu and WinXP).

Going to mark as not a bug.  If you can provide further debug information, we will reopen this ticket.</description> 
   <pubDate>Thu, 29 Apr 2010 17:09:20 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58669</link> 
  </item> 
   
  <item> 
   <title>&gt; Definitely looks more like a browser/OS/UI bug than an iss</title> 
   <description>&gt; Definitely looks more like a browser/OS/UI bug than an issue with the 
&gt; JS code.  (For the record, I tested with FF 3.6 on Ubuntu and WinXP).
&gt;
&gt; Going to mark as not a bug.  If you can provide further debug 
&gt; information, we will reopen this ticket.

The following small patch does the job for me.
I have 150 folders and everything works as expected using Firefox.

If I understood correctly; 
p[1] seems to be the size of the folder tree (folders that are expanded) * some value (probably font height)
p[3] = p[1] + dim.height

I&#039;ve noticed that when dealing with lots of folder, p[1] is always bigger than window.innerHeight and that probably why it was always scrolling back to the first folder of the tree.


--- dragdrop2.js.org	2010-05-24 16:33:50.000000000 +0200
+++ dragdrop2.js	2010-05-24 16:34:37.000000000 +0200
@@ -626,16 +626,16 @@
         //    speed[0] = this.lastCoord[0] - p[0];
         //}
         // Top scroll
-        if (this.lastCoord[1] &lt; p[1]) {
-            speed[1] = this.lastCoord[1] - p[1];
+        if (this.lastCoord[1] &lt;(window.innerHeight - dim.height)) {
+            speed[1] = this.lastCoord[1] - (window.innerHeight - dim.height);
         }
         // Scroll right
         //if (this.lastCoord[0] &gt; p[2]) {
         //    speed[0] = this.lastCoord[0] - p[2];
         //}
         // Scroll left
-        if (this.lastCoord[1] &gt; p[3]) {
-            speed[1] = this.lastCoord[1] - p[3];
+        if (this.lastCoord[1] &gt; (window.innerHeight - 10)) {
+            speed[1] = this.lastCoord[1] - (window.innerHeight - 10);
         }
 
         if (speed[0] || speed[1]) {
</description> 
   <pubDate>Mon, 24 May 2010 13:48:47 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58949</link> 
  </item> 
   
  <item> 
   <title>Changes have been made in Git for this ticket:

Bug #8989: F</title> 
   <description>Changes have been made in Git for this ticket:

Bug #8989: Fix folder list scrolling.
Signed-off-by: Michael M Slusarz &lt;slusarz@curecanti.org&gt;

http://git.horde.org/diff.php/horde/js/dragdrop2.js?rt=horde-git&amp;r1=35115b66c5d4d2309553647f475724ab58f9f8b5&amp;r2=0736b67c4a6869d1e1452f2f025ac03ec176f4ea</description> 
   <pubDate>Mon, 24 May 2010 19:22:01 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58954</link> 
  </item> 
   
  <item> 
   <title>Patch slightly modified and committed.</title> 
   <description>Patch slightly modified and committed.</description> 
   <pubDate>Mon, 24 May 2010 19:26:11 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/8989#t58955</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
