6.0.0-beta6
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
4/10/26
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#8989] drag and drop message to hidden folder
*
Your Email Address
*
Spam protection
Enter the letters below:
. . __..___..__ . . | |(__ | [__)| | |__|.__) | | |/\|
Comment
>> 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. > > 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'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] < p[1]) { > - speed[1] = this.lastCoord[1] - p[1]; > + if (this.lastCoord[1] <(window.innerHeight - dim.height)) { > + speed[1] = this.lastCoord[1] - (window.innerHeight - > dim.height); > } > // Scroll right > //if (this.lastCoord[0] > p[2]) { > // speed[0] = this.lastCoord[0] - p[2]; > //} > // Scroll left > - if (this.lastCoord[1] > p[3]) { > - speed[1] = this.lastCoord[1] - p[3]; > + if (this.lastCoord[1] > (window.innerHeight - 10)) { > + speed[1] = this.lastCoord[1] - (window.innerHeight - 10); > } > > if (speed[0] || speed[1]) { >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers