How do I use pointer-events to react only to scroll event?

前端 未结 1 1046
独厮守ぢ
独厮守ぢ 2020-12-17 07:39

Is it possible to set pointer-events to only react to scrolling or drag on a touch-pad? I have a div \'in the way\' for scrolling a complex html arrangement* and I would lik

相关标签:
1条回答
  • 2020-12-17 08:11

    As for specification in the docs:

    When an element has applied pointer-events: none;

    The element is never the target of any mouse events and any events are void;

    Please look at this demonstration:

    http://jsbin.com/wewosumehi/1/

    Events are not being fired, you cannot even scroll the container.

    0 讨论(0)
提交回复
热议问题