If jQuery needed (for any reason), it has to be included after AngularJS - Add to docs?
On my touch devices, drag and drop doesn't work if I include jQuery before AngularJS.
<script src="angular.js"></script>
<!-- In order to draggable work, jQuery has to be included after AngularJS. -->
<!-- <script src="jquery.js"></script> -->
<script src="ngDraggable.js"></script>
As I just answered a question about this same issue, I would like to ask your opinion whether is it reasonable to add this to the docs or not (or if someone could deep dive into the codes and find the real source of the problem).
+1
I added jQuery after angular.js but it doesn't work for me. Maybe because I have more other libraries? I think it is a bug (that I need include jQuery after angular. What if I don't want to use jQuery Lite and want to use full jQuery) and need to try to fix it.
+1 furthermore, grunt serve changes the order back to jquery, angular in my project so I need to always watch out for this issue
+1
I narrowed down the problem to _mx = ngDraggable.inputEvent(evt).pageX; being undefined in onlongpress, only to find that re-ordering the libraries fixes the issue.
+1 This solved it for me as well. D&D would work before on desktop browsers but not in iOS Safari.
+1