Page 1 of 1

jquery.ui.touch-punch

Posted: Mon Jun 01, 2015 10:34 pm
by Romeo

Hello, I succesfully implement th jqTouch-punch in the app.

I started with the ionic template and trying to drag some pictures, in the preview works fine even in the device browser but in the tester the app just get blank.
what could be wrong ?


jquery.ui.touch-punch

Posted: Tue Jun 02, 2015 9:52 am
by Illya Stepanov

Hi Romeo -

Let's start from the beginning, could you please explain how you added touch-punch into your app?

And what do you mean by the tester here?


jquery.ui.touch-punch

Posted: Tue Jun 02, 2015 3:03 pm
by Romeo

Hi Illya,
I added in external resourses:

src="http://code.jquery.com/jquery.min.js"
src="http://code.jquery.com/ui/1.8.17/jque..."
src="jquery.ui.touch-punch.min.js"

reference---: http://touchpunch.furf.com/

To make some images draggable, works fine in mobile preview in browser(pc desktop) ..

and by the tester I mean The apperyio Android native tester for apps (android, iOS devices), here is where the apps just get in blank screen, I also built the apk and installed in my device didn't work either


jquery.ui.touch-punch

Posted: Thu Jun 04, 2015 7:15 pm
by Serhii Kulibaba

Hello Romeo,

Could you check are there any errors in console? This (https://devcenter.appery.io/documenta...) should help.

It can be related with touch events which fire on device.


jquery.ui.touch-punch

Posted: Thu Jun 04, 2015 7:51 pm
by Romeo

Hello,

There is any error in console, it is just when I building the apk ...

When I remove the jQuery and the jq ui touch-punch libs there is no problem in Appery Tester, just works fine, so I assume that if I built the apk this way it won't be any problem..


jquery.ui.touch-punch

Posted: Thu Jun 04, 2015 7:52 pm
by Romeo

Sorry, I mean THERE IS NO ERROR IN CONSOLE


jquery.ui.touch-punch

Posted: Thu Jun 04, 2015 8:18 pm
by Romeo

How can I do for make an image draggable whether it is with angular or not and building the apk successfully ?


jquery.ui.touch-punch

Posted: Thu Jun 11, 2015 10:48 am
by Serhii Kulibaba

Romeo, please add all js files (jquery-1.7.2.min.js, jquery-ui.min.js, jquery.ui.touch-punch.min.js) via
Crete new-Javascript

and run JS as in example: pre$('#widget').draggable();/pre

after that you will be able drag and drop this component