Starting from the demo of sortables, I wanted to put the lists into
fixed size divs having their overflow being scrolled and be able to
drag and drop between the two lists.

I've experimented some issues and have not been able to make it work
right by using the various options of the Mootools More classes. If
somebody knows how to do it, let me know

By nature, I'm curious, so I digged in Mootools More and I've been
able to see where in the Mootools More code things did not go as I
expected.

I do understand that to some extend I could try to subclass and adjust
the behavior there, but did not feel ultimately too comfortable doing
this because my subclasses would be highly dependent on the internal
implementation of the superclasses.

And if the issues I've expected were not qualified as "bugs" in the
eyes of Mootools developers, I would say they are possibly good RFEs.
But before creating tickets in Lighthouse, I first wanted to check it
out here first. (The other reason being that I'm new to all this and
still have not looked into Lighthouse and GitHub).


I've set up the following jsfiddle to illustrate what I got:
http://jsfiddle.net/jmt_be/976fz/


What are the issues I'm experimenting:

- if you scroll a list and then try to drag one of its element, the
clone (generated by the sortable) is not going to be displayed right
where the mouse is, but at some offset above.

- when you try to drag an element from the first list to the second,
the clone disappears behind the second list.

- just after loading the demo, try to drag item 2.2 before item 2.1,
this is not going to work.


Since I was able to spot in Mootools More where things were not going
how I expected it, I've modified it and managed to make things work in
fact.

If you're a Mootools Developer and confirm that my issues would be
bugs or good RFEs, I'll try to speed up getting into Lighthouse/GitHub
or whatever. And in the meantime, I can already send the code changes
if you want.

jmt

Reply via email to