Passing mouse clicks through an overlaying element

前端 未结 4 696
别跟我提以往
别跟我提以往 2020-11-29 04:33

Is it possible to pass mouse clicks through an overlaying element:

4条回答
  •  暖寄归人
    2020-11-29 04:43

    I see you are using "rain.24.png" is the overlay animated? As in you are repositioning the images to simulate rain? If this is the case, then it might be best to stop/hide the animated on mousedown and then get the activate your function on the underlying elements using mouseup.

    If that isn't the case, then use Vincent's answer to get the element, then call the associated function or use trigger to simulate the click

提交回复
热议问题