selectables: the 'selecting' state

selectables: the 'selecting' state

Hi all,<div>
</div><div>in the current Selectables, we have a two certain special states for items called 'selecting and 'deselecting'.</div><div>A couple notes about them:</div><div>
</div><div>- 'selecting' happens when you are in the process of drawing a lasso and didn't release the mouse yet</div>
<div>- 'deselecting' (or unselecting, don't remember) happens when you are in the process of deselecting an item via lasso and didn't release the mouse yet</div><div>- selecting comes in as ui.selecting in the callbacks and the items receive a 'ui-selecting' class name</div>
<div>- once the mouse button is released, elements are being selected properly (with the class 'ui-selected' I think)</div><div>
</div><div>I always found this feature weird, since it never had a real use (imho) other than styling the elements differently - another use I could see is if you</div>
<div>have to make calls or things like that when you select, and it's costly to make calls one by one, so it's done after the lasso draw.</div><div>
</div><div>However, other than that, I'm seeing mostly added complexity and other disadvantages - for instance, it is only applicable for the lasso - not to normal mouseselection, not to keyboard selection (maybe while holding shift, thought that would feel weird as well).</div>
<div>
</div><div>In the new selectables, this whole feature is gone. This has the side effect that it's not completely backwards compatible (along with some other much needed API changes), but I think that almost all previous features can quickly be rewritten since I added one additional boolean in callbacks: ui.lasso (true/false). </div>
<div>
</div><div>Are there any good reasons not to remove it, or rather, get it in again?</div><div>
</div><div>Cheers,</div><div>Paul<br clear="all">
--
Paul Bakaus
UI Architect @ <a href="http://smart.fm">smart.fm</a>
--
<a href="http://paulbakaus.com">http://paulbakaus.com</a>
<a href="http://www.linkedin.com/in/paulbakaus">http://www.linkedin.com/in/paulbakaus</a>
</div>