Emulate W3C event capturing model in IE

前端 未结 6 1356
野趣味
野趣味 2021-02-07 11:54

Is it possible to emulate event capturing in Internet Explorer?

An example:

one
two
three3



        
6条回答
  •  借酒劲吻你
    2021-02-07 12:39

    setCapture is used to retain some mouse-related action outside the browser window

    and it is used to implement some kind of drag&drop

    if you mousedown an element and you will go with your pointer outside the browser window the mousemove event stops to work

    if you setCapture() the mousemove event will continue to work outside the browser window

    https://developer.mozilla.org/en/DOM/element.setCapture

    and the related method to release capture

    https://developer.mozilla.org/en/DOM/document.releaseCapture

    so, it has nothing in common with the capturing event model and, there's no known way to emulate it in internet explorer in a standard way!

    hope this helps!

提交回复
热议问题