MouseEvent.path equivalent in Firefox & Safari

前端 未结 2 761
有刺的猬
有刺的猬 2021-02-04 00:21

I\'m using Polymer 1.0 and when there is a click on a button in Chrome a MouseEvent is generated. This MouseEvent object has a path proper

2条回答
  •  执笔经年
    2021-02-04 01:02

    It seems like the e.composedPath() method might be a cross-browser version of e.path. It works in Chrome and Firefox. Not sure about Safari.

提交回复
热议问题