In my web UI, i would like to have totally different response to mouse and touch events in the same screen area. I see the solution to position a blank container (either div
or SVG rect
) over the area in order to capture only the touch events for the entire space, while mouse events would reach out to the specific objects underneath.
The question is: how do i make this container sensitive to touch events (as if it had CSS
property pointer-events: visible;
) but transparent for mouse event (as if it had CSS
property pointer-events: none;
)?
Unfortunately, the mentioned CSS property modifies the behavior together for mouse and touch. Thanks!