Say I have a divA that partially overlaps divB . How to allow divA clicks to go to divB , but when starting hover when hovering over divA ?
I know pointer-events:none; , and it makes clicks go through, but also prevents hovering.
I also tried using below, but didn’t allow clicks
$(document).on('click', '.feedback-helper', function(e){ e.preventDefault(); })
Depict the relation divs as:

Here's why (read how: “avoid the XY problem”):
I am working on implementing feedback.js
To see the problem:
- view feedback feedback.js
- Click the feedback button in the lower right.
- draw a window on the screen to highlight the section
- press the black button.
- try to draw a box inside the first window , you cannot, because the click is blocked by the first field
I need to be allowed to draw a dimming block over the selected area, but if I set pointer-events:none; I will lose another hover function that I use for these elements.
All solutions are welcome.
source share