0

If i perform mouse down on element A and release the mouse when i am on element B, neither of the elements receive the mouseUp event. Is it possible that one of them will receive the event (it does not matter to me which of the two)?

4

1 回答 1

0

在您所描述的情况下,这两个元素都不会收到 mouseup 事件,因为您将事件类型mouseup的事件侦听器附加到元素 A。我会得出结论,如果您在悬停在任何东西上时释放鼠标按钮,特定的 mouseup 事件侦听器将不会触发不包含在元素 A 中。

于 2013-01-14T12:27:52.217 回答