简体   繁体   中英

My Tizen app flickers upon tapping

I'm building a JavaScript Tizen app for Gear S2 In an earlier stage of development I considered using Angular, but I just ignored the possibility entirely because ng-click events made the screen flicker.

I kept building the app without any issues, my click event worked fine! Until I incorporated jQuery mobile and suddenly my app now flickers when I "tap" the emulator. I tried binding the event in 3 different manners, with the same result:

window.addEventListener("click", callback); // way 1
$(document).bind("click", changeMode); // way 2
$(document).bind("tap", changeMode); // way 3

does anyone have a clue of why this might be happening?

When do you bind the click event? Maybe you add the listener multiple times, so your Callback is also triggered multiple times.
Also why add the click listener to the window/document instead of a proper element?

I would also prefer to use ".on()" and ".off()" instead of bind.

Maybe you can share some of your code so we can "see" the problem?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM