summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b6b9052)
Currently the keyboard slide out & hides again quickly.
- map.on("popupopen", function (e) {
- $(e.popup._container).find(".comment").focus();
- });
+ // Don't focus the text area on touch devices to avoid flashing the keyboard
+ if (!('ontouchstart' in document.documentElement)) {
+ map.on("popupopen", function (e) {
+ $(e.popup._container).find(".comment").focus();
+ });
+ }
map.on("popupclose", function (e) {
if (newNote && e.popup == newNote._popup) {
map.on("popupclose", function (e) {
if (newNote && e.popup == newNote._popup) {