Google Nexus (Jellybean) issue?

0 favourites
From the Asset Store
Google Analytics 4 Plugin for Construct 3 enables metrics and analytics for your games easily.
  • So I just got in my Nexus and first thing I did was install my Word Search for Kids game on it. The game works perfect on my phone, HTC Thunderbolt.

    Every touch is registering twice. In my game you press letters to select them, and press them again to deselect them. Each touch causes the letter to highlight, and then unhighlight. It plays the sound for each as well, it's like I am double clicking it. Happens on every touch event.

    Any ideas?

  • Appears to be an issue with either Phonegap or Jquery 1.7.1 and not Construct. I'll post more information or a fix if I find one.

  • Well here seems to be a fix that is going around. I'm not sure if it's related, but if so I would love to know where to drop this code to fix the issue.

    The solution, just add this code in the top of the iscroll.js

    var last_click_time = new Date().getTime();

    $("a").live("click", function(ev) {

         var click_time = ev["timeStamp"];

         if (click_time && (click_time - last_click_time) < 1000) {

              ev.stopImmediatePropagation();

              return false;

         }    

         last_click_x = click_x;

         last_click_y = click_y;

         last_click_time = click_time;

    });

  • I have a Nexus 7 and single touch works fine. Probably a Phonegap issue if you're using it.

  • Thanks for clarifying that for me. I figured as much as it works fine in the web browser, just not compiled with phonegap. I'm not really sure how all of these things come together in the end, I just know how to get there :).

  • If anyone has any ideas where I would put the above code I would appreciate it.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Well phonegap just updated their SDK, but it didn't fix the issue. Based on the code and info I posted above, does anyone have any info on how I might fix this manually?

    Thanks.

  • If you're sure it's a PhoneGap issue, you should tell PhoneGap about it.

  • I'll open a support ticket with them, thanks Ashley. I'm not sure where the issue is, or if it's just a combination of Jellybean, Construct and Phonegap.

  • People on the AppMobi forums are reporting similar issues so I'm sure it's going to get worked out over the next few months.

  • Well it's been several months but I ran into this issue again using phonegap and I finally figured it out. If you have Use Mouse Inputs enabled on your touch object, you get the touch event firing twice.

  • Well it's been several months but I ran into this issue again using phonegap and I finally figured it out. If you have Use Mouse Inputs enabled on your touch object, you get the touch event firing twice.

    So... Are you saying that by disabling the Use Mouse Inputs then the touch works as designed?

    Just want to clarify - Nexus is one of the devices I am buying this month for testing.

  • Yes, I turned that option off in construct, exported to phonegap and built with eclipse and everything worked great. Going update my other app that's been on google play for a while. I had to make it not available to Droid os over 4.1. :)

    I should reiterate, this was only a problem when building with phonegap through eclipse. Not sure if it happens with phonegap build as well.

  • es, I turned that option off in construct, exported to phonegap and built with eclipse and everything worked great

    May i ask you, why you use phonegap and eclipse instead of just using phonegaps online compiler? Im really interested, as coccon is not possible for me at the moment and exporting my game to phonegap-online-builder is quite laggy(sure, this may have several reasons). Ok, i saw your spelling game(which is really nice!--> superb grfx.All made by yourself?), as little as i know by now, i guess its no problem for your game that is not supported by direct-canvas(not really sure if im right here). One thing i really dislike with my little export-experiences with phonegap-online-compiler is that my programm now requires permissions i dont wanna have in my game,cause its just not necessary.Those games compiled by cocoon are even worse...As i have a (very) little experience programming java within eclipse i know, that you have full control over the permissions here. Do i have the control with the combination of cordova/eclipse? Didnt try it out yet.

  • dformer

    I only use Phonegap with simple games/apps. I build it through eclipse (for droid) and xcode (for ios) because it gives me more flexibility in the build. I can add any 3rd party sdk I want, in this case AdMob. I can also include, exclude permissions, etc.

    Also, in the past I used the Audio Latency plugin for phonegap to fix up laggy sound issues, however I didn't need to this time. I'm guessing the latest version of phonegap has solved that issue.

    Thanks for the nice words on my game, yes I did all the graphics myself. Except for the pictures, those were purchased.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)