Does the number of buttons and links increase mobility?

I'm interested. Does a div imitate a button (with the 'click' event associated with it) is user friendly? I mean, do all mobile browsers relate to it exactly and always fire when you click on a div? Is replacing such designs with conventional buttons more responsive to mobile devices?

+4
source share
1 answer

Google describes it pretty well, I think, here .

So, as described there, handling the click event adds a delay of 300 ms, because it waits to see if it is a double click.

JavaScript, touchend, click. touchend , , click, , :

  • - , touchend , click.
  • , , touchend , click.
  • , , .

, touchstart touchmove. touchend , touchstart. , touchmove -, touchstart, touchend click.

, onclick . , touchend , . , onclick , .

- .

Touchend .

+5

Source: https://habr.com/ru/post/1536237/


All Articles