I
I
Igor Skoldin2014-08-27 16:41:34
JavaScript
Igor Skoldin, 2014-08-27 16:41:34

How to define zoom event on mobile devices using jQuery?

Scaling in desktop browsers is handled nicely with resize(). However, it turned out that on touch devices, at least in Android, this does not work. Is there a method by which to detect when the user is zooming in on the page?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petrov, 2014-08-27
@skoldin

Recommend so

$(document).on('gesturechange', function (e) { 
  // В свойствах события e есть информация про scale size
});

X
xmoonlight, 2014-08-28
@xmoonlight

see how it's done here
Works on both Android and iOS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question