M
M
mletov2017-07-18 12:22:22
JavaScript
mletov, 2017-07-18 12:22:22

Why does a double click work on Yandex.Maps on Samsung phones, and not a single one?

Such a problem:
There is Yandex.Maps on the site, there is a placemark on them. I hang a click event on them like this

...
      (function (id) {
                                        placemark.events.add("click", function (e) {        
                                            var urlRedirect = "/ContactsPoints/?id=" + id + "&typePoint=" + typePoint;
                                            location.href = urlRedirect;
                                        });
                                    })(id);
...

Works fine on desktop. I began to test on phones / tablets .. on my phone (ASUS) it also works fine, with tablets, it works without problems. Tested on the iPad - everything is fine. But for some reason, on Samsung phones (I took 3 different ones for the test), one click does not work out, the event occurs only on a double click. How to overcome it? Tested in Chrome. I also sin that maybe I have a tablet and a phone on Andoid 5, and Samsung on 6, maybe there is some other Chrome.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mletov, 2017-07-18
@mletov

Resolved the issue. Updated Yandex.Maps API
on the
The devices I tested on were Android 5, and the problematic Samsung phones were on Android 6. Apparently, there is some difference in the browser.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question