Hello there Greenies, i would need some assistance if possible.
Here goes.
Im working on a pack of draggable elements that are dynamically built from sqlite query. Heres my issue.
If elements are manually placed in the project they are all draggable, no issues there but when the screen is populated with database created elements they are not.
I have tried waiting for query to complete and fire draggable events but it wont budge. The only way i made it work is to call the script with each element and that destroyes the logic and performance like theres no tomorrow (thats prolly cause i mangled it like a butcher).
Please have mercy with comments im kinda new around here.
Database created elements
in GSAP
Posted
Hello there Greenies, i would need some assistance if possible.
Here goes.
Im working on a pack of draggable elements that are dynamically built from sqlite query. Heres my issue.
If elements are manually placed in the project they are all draggable, no issues there but when the screen is populated with database created elements they are not.
I have tried waiting for query to complete and fire draggable events but it wont budge. The only way i made it work is to call the script with each element and that destroyes the logic and performance like theres no tomorrow (thats prolly cause i mangled it like a butcher).
Please have mercy with comments im kinda new around here.
Thanks in advance,
Jim.
CODE:
Im using this draggable script (found on codepen)