javascript - Is touchstart and touchend required to develop a game for a ios, android ect.? -
i in middle of developing html5 game. have been using mousedown , mouseup event handlers touch events. have been trying migrate phone emulator see how preforms on device. wondering if needed rewrite of events use mousedown , touchstart , touchend ect. events. mousedown , mouseup listeners seem working fine while play game while "emulate touch screen" setting on. in terms of performance there reason use 1 on other?
yes, should change touch events. although mouse events work on mobile browser, there well-known 300ms click delay on mobile device. considering developing html5 game, it's worthy improve performance.
there third party library such jquery mobile may mask event easier development.
Comments
Post a Comment