Hi Peter,
I haven't tried, but if we are talking about a non editable looper, I would try and code that without jquery, just in wlanguage. This is what I would do: - on top of my looper elements, I would add a transparent control (image by example), covering the whole looper - I would add the click down and click up process to that element - in the click down process, I would start a timer (by example 1/10 s), and in the click down process I would stop that timer. This would differentiate between a regular click (down and up are in less than a 1/10 of a second) and a drag - in the timer process, I would make an extra cell visible, containing the same control than the looper, and with the data of the current line copied in it. This cell position would be calculated based on the mouse position, of course, inside the area of the looper - in the click up process, I would again find which element has been clicked up, and replace/move the looper accordingly.
Of course, it would also be possible to move everything WHILE dragging, in the timer process.
AFAIK, no jquery required...
Best regards |