Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

jquery.ui.touch-punch

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 ?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

jquery.ui.touch-punch

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?

Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

jquery.ui.touch-punch

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

jquery.ui.touch-punch

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.

Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

jquery.ui.touch-punch

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..

Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

jquery.ui.touch-punch

Sorry, I mean THERE IS NO ERROR IN CONSOLE

Romeo
Posts: 0
Joined: Sun Jul 21, 2013 3:08 am

jquery.ui.touch-punch

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

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

jquery.ui.touch-punch

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

Return to “Issues”