[BUG] Off-by-one error in 3.7a-5707 PLM drag-and-drop ( seen in Browser and ChangeSorter )

brentvukmer at yahoo.com brentvukmer at yahoo.com
Tue Feb 17 18:33:27 UTC 2004


I have noticed that when drag-and-drop is enabled, that I repeatedly see
an off-by-one error in the Browser. I'll select a method and drag it to
a different method category, but when the drop finishes, I usually see a
method *other than the one I selected* in the target method category.

I've been working on feature for the BFAV2 reviewer notepad, where the
user can drag a changeset from a ChangeSorter and drop the changeset
into the notepad.  I am repeatedly getting the same off-by-one error
here.

I have been debugging in PluggableListMorph >> startDrag:.  My guess is
the problem is that the event being passed in has the wrong position. 
The event's position seems to be generated by HandMorph >>
generateDropFilesEvent:  This method was last changed by dgd in March
2003.
I tried reverting to first version of the method (by ar in February
2001) and that seemed to make it worse - I got an off-by-three error.

Not sure of how to fix this, or even if my diagnosis is correct, so I'm
submitting a plain bug report...

Thanks,
Brent















<This post brought to you by BFAV2>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqueakDebug.log
Type: application/octet-stream
Size: 4184 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20040217/3733833f/SqueakDebug.obj


More information about the Squeak-dev mailing list