Safari Mobile:pointer-events CSS不适用于SVG内容 [英] Safari Mobile: pointer-events CSS does not work for SVG content
问题描述
在应用到SVG元素时,我无法获取指针事件CSS可以正常工作。
I am having trouble getting pointer-events CSS to work properly when applied to an SVG element. It does not behave as expected when using the iPad.
我在这里创建了一个小问题演示:
I've created a small demo of the problem here:
如果任何人遇到这个问题或对此有任何了解,我将非常感谢您的帮助!
If anyone has run into this before or has any insight to this, I am super appreciative for the help!
推荐答案
Safari仍然出现了这个问题与svg指针事件。
Safari still appears to have this problem with svg pointer events.
它们在Webkit和Chrome中正常工作,所以我想这只是一个Safari bug,他们还没有修复。
They work fine in Webkit and Chrome, so I guess it's just a Safari bug that they haven't yet fixed.
...经过一些更多的研究,我想出了混乱。 Safari目前支持svg元素上的指针事件,但这不包括svg标签本身。
... After some more research, I figured out the confusion. Safari does currently support pointer events on svg elements, but this does not include the svg tag itself.
这篇关于Safari Mobile:pointer-events CSS不适用于SVG内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!