javascript - Android Cordova canvas app lags only for specific device running 2.3.6 Gingerbread when no touch events are being fired -
my app uses html5 canvas , uses cordova build .apk file.
i have tested app on 5 devices running varying versions of android os , of varying hardware capabilities. 1 lagged samsung galaxy ace 2, running android 2.3.6 gingerbread. believe os issue because phones tested similar/worse hardware not lag.
when screen touched , remains touched, lag reduced. noticed pixels seem smoothed or anti-aliased when screen not touched more pixelated when screen touched, believe causing lag. prefer less pretty no lag opposite. javascript not cause happen, , stuck on how resolve it.
the following did not solve problem:
context.imagesmoothingenabled = false;
and using css image-rendering
settings did not help.
the javascript has touchstart, touchend , touchmove event listeners attempted hack way faking touchmove event if user not touching screen, although couldn't working , it's not elegant solution anyway.
i have had problem weeks , want apps work on devices.
does have suggestions?
thanks, george.
Comments
Post a Comment