enyo.Drag control with container boundaries

edited February 2014 in Enyo 2
This is my enyo.Drag control I put together: jsfiddle. It's a drag with a (optional) container. I would just like to know if it can be improved. Maybe the usage of parseFloat() during the drag event is a little excessive? , but I don't know any other, more efficient way of getting the computed style values into the drag event handler without making a bunch of calls to a method that would perform the parseFloat. Any suggestions would be appreciated. Also, feel free to use the script however you like and I'll try to add to the controls functionality going forward.


Sign In or Register to comment.