combo box not working after load/use iscroll in page

天大地大妈咪最大 提交于 2019-12-14 03:13:25

问题


I am using iscroll4 in my application. I am facing problem with iScroll that made drop down lists(combo box) unusable when used at the same time. I tried how they mentioned here ( http://groups.google.com/group/iscroll/browse_thread/thread/5b2fbad6aa667907# )

$(document).ready(function() {
var destinations_scroll, accounts_scroll;
    function loadingIscroll() {
        accounts_scroll = new iScroll('accounts_container');
        destinations_scroll = new iScroll('destinations_container', {
            checkDOMChanges: true
        });
        setTimeout(function() {
            destinations_scroll.refresh();
        }, 0);
    }
    document.addEventListener('touchmove', function(e) {
        if (e.target.tagName != "SELECT") {
            e.preventDefault();
            e.stopPropagation();
        }
    }, false);
    addEventListener('DOMContentLoaded', loadingIscroll, false);

});

But still select box (combo box/drop down) not working. Any suggestions?


回答1:


Hi I got an answer from iScroll 4 not working with form <select> element iPhone Safari and Android browser. Thanks to @comonitos. I used his solution.



来源:https://stackoverflow.com/questions/10006606/combo-box-not-working-after-load-use-iscroll-in-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!