dobtco / formbuilder

[Needs Maintainer] Formbuilder is a small graphical interface for letting users build their own webforms.
http://dobtco.github.io/formbuilder/
MIT License
1.84k stars 488 forks source link

touchpunch or smart phone dragging #141

Open glennpowell2 opened 9 years ago

glennpowell2 commented 9 years ago

I have used touchpunch in the past to allow sortable and dragable to work on touch devices such as an Iphone or Android. This has always worked well for me. It replaces click events with touch events. I don't know for sure that you are using Jquery-UI but you appeared to be using it for the drag and drop functionality. Are you, and if so is there a way to implement the touchpunch plugin, usually you just make the call to the external file right after your call to the jquery-ui file, and it works. I have not found where you are calling jquery-ui though. Any tips or ideas on how to get the drag and drop working on touch devices. This form builder is all kinds of awesome, and any help would be greatly appreciated.

smurfpandey commented 9 years ago

It looks like the dependencies are added via bower, and using grunt they are all compiled into a single vendor.js Check:

  1. https://github.com/dobtco/formbuilder/blob/gh-pages/bower.json#L24
  2. https://github.com/dobtco/formbuilder/blob/gh-pages/Gruntfile.coffee#L65