CSS overflow breaks click events on Galaxy Tab

一曲冷凌霜 提交于 2019-12-10 15:49:41

问题


I feel like I am missing something fundamental.

On:

Samsung's Galaxy Tab 10.1 (might be tru on other Andoid devices - not sure) Dolphin or built-in 'default' browser Any block element styled with overflow: auto or overflow-y auto, to get a vertical scrollbar causes that div to act like it isn't even in the event tree when a child is clicked.

For example. I have something like this:

<div id="a">
    <ul>
        <li>one</li>
        <li>two</li>
    <ul>
</div>

If ul is styled to have overflow:auto then clicking on 'one' or 'two' fires the event on #a - it's as if the ul/li's aren't even there. In portrait mode all is well. I can literally tilt the tablet 90 degrees to make it work, make it fail, etc.

I still need to simplify this in fiddler but you can see the effect by going here:

Since it is both browsers it must be my problem!?!

Any ideas?


回答1:


This appears to be a variation on this problem.



来源:https://stackoverflow.com/questions/11267961/css-overflow-breaks-click-events-on-galaxy-tab

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