Open davidaurelio opened 11 years ago
👍 For this issue. Currently Solving this issue by CSS "pointer-events" property
#player {
pointer-events:none;
}
#player g,
#player path{
pointer-events:auto; /* if you want :hover events on some paths/g */
}
But this only partially solves the problem. The reason being when scrolled on SVG elements that rely on :hover events, it preventDefaults. A user should be able to use the default scroll as well as :hover events.
At the moment we call
preventDefault()
on every event. That leads to problems with scrolling and touch gestures.We should mark elements that listen to drag and move events for the renderer, and the renderer should call
preventDefault()
only for events that affect these elements.