pointer-events

Canvas handling event, then passing through to iframe…?

天涯浪子 提交于 2019-12-24 22:46:13
问题 Despite searching all evening, I still haven't found a solution to this. I have the following layout in the DOM: <div class="kort_miðja_úti"> <iframe class="kort_miðja" frameborder="0" width="100%" height="100%" src="...."></iframe> <canvas class="kort_canvas"></canvas> </div> The canvas is in front, acting as a transparent overlayer on an interactive map from a different site. So when there's a mouse event, it gets it first. It needs to do things on the mouse events, then forward them on to

IE 11 Pointer Events Override

为君一笑 提交于 2019-12-21 09:31:45
问题 I am trying to override the pointer-events property for a containing div. It works in everything so far except IE 11. Supposedly, the pointer-events property was added to IE 11. For some reason, it won't override though. .divstyle { pointer-events: none; } .buttonstyle { pointer-events: auto; } <div class="divstyle"> <table> <tr><td> <input type="button" class="buttonstyle" value="test"> </td></tr> <tr><td> <!-- A BUNCH OF CONTENT THAT I DON'T WANT TO HAVE POINTER EVENTS --> </td></tr> <tr>

`pointermove` event not working with touch. Why not?

前提是你 提交于 2019-12-20 19:05:24
问题 I have this pen: https://codepen.io/anon/pen/eyKeqK If you try it on a touch-screen device (f.e. visit the pen on your phone) you'll notice that when you drag, the white light (the little sphere) only moves for a tiny bit then it stops working. The logic for the movement is in the pointermove event handler. It works fine on Desktop using a mouse, just not with touch. How do we fix this so the light keeps moving while touch dragging (not just for a moment), and as bonus how do we prevent it

pointer-events css控制点击穿透事件

不想你离开。 提交于 2019-12-18 22:26:10
如果有这样的场景,点击页面上飘动的雪花,触发雪花下面的元素的事件,下面的CSS特性有惊喜 官方文档是这么介绍的 pointer-events CSS 属性指定在什么情况下 (如果有) 某个特定的图形元素可以成为鼠标事件的 target 。 /* Keyword values */ pointer-events: auto; pointer-events: none; pointer-events: visiblePainted; /* SVG only */ pointer-events: visibleFill; /* SVG only */ pointer-events: visibleStroke; /* SVG only */ pointer-events: visible; /* SVG only */ pointer-events: painted; /* SVG only */ pointer-events: fill; /* SVG only */ pointer-events: stroke; /* SVG only */ pointer-events: all; /* SVG only */ /* Global values */ pointer-events: inherit; pointer-events: initial; pointer-events:

Detecting Mouse Events on Multiple Overlapping SVG Elements

丶灬走出姿态 提交于 2019-12-18 13:30:01
问题 I'm trying to detect mousemove events on partially overlapping SVG elements, as in this image fiddle <svg> <rect id="red" x=10 y=10 width=60 height=60 style="fill:#ff0000" /> <rect id="orange" x=80 y=10 width=60 height=60 style="fill:#ffcc00" /> <rect id="blue" x=50 y=30 width=60 height=60 style="fill:#0000ff; fill-opacity: 0.8" /> </svg> $('rect').on('mousemove', function() { log(this.id); }); Now, when hovering the mouse over the blue/red intersection I'd like to detect mouse events on both

Is there a `pointer-events:hoverOnly` or similar in CSS?

删除回忆录丶 提交于 2019-12-17 15:24:22
问题 Just been playing about with pointer-events property in CSS. I have a div that I want to be invisible to all mouse events, except for :hover . So all click commands go through the div to the one below it, but the div can report whether the mouse is above it or not still. Can anyone tell me if this can be done? HTML: <div class="layer" style="z-index:20; pointer-events:none;">Top layer</div> <div class="layer" style="z-index:10;">Bottom layer</div> CSS: .layer { position:absolute; top:0px;

RTSP转RTSP、RTMP、HLS、FLV安防摄像头网页无插件直播流媒体服务器EasyNVR在IE浏览器下的 pointer-events- none前端兼容性调试

ⅰ亾dé卋堺 提交于 2019-12-16 03:09:45
背景说明 由于互联网的飞速发展,传统安防摄像头的视频监控直播与互联网直播相结合是大势所趋。传统安防的直播大多在一个局域网内,在播放的客户端上也是有所限制,一般都需要OCX Web插件进行直播。对于安防监控的视频直播需求,根据不同的业务需求,对视频直播需求也不尽相同。针对这样的行业大环境背景,立足于开源社区的EasyDarwin团队推出了EasyNVR、EasyDSS等系列产品。而对于安防监控的视频直播需求,对延时要求都比较高。 IE浏览器下的pointer-events- none问题 在我们调试EasyNVR的web页面过程中,力求的都是一个播放效果的、功能的展示。对于兼容性也有注意,但有些细小的部分还是难免有所疏忽。内部测试发现:由于我们是流媒体的实时视频直播,在web的直播页面中,我们都是屏蔽、删除播放器的暂停按钮、功能的。我们的web页面播放rtmp、hls使用的是videojs,因此,我们需要通过设置css属性来完成这个需求。 发现问题 屏蔽单机页面暂停 .video-js .vjs-tech { pointer-events: none; } 这个属性设置 很好的在chrome中完成了需求。但是在IE中似乎就没有能够完成自己应有的任务了。 隐藏暂停、开始按钮 .vjs-progress-control,.vjs-remaining-time-display{

how to stop only the hover pointer event in css

只愿长相守 提交于 2019-12-13 14:52:29
问题 I have an interactive background that uses css to change opacity on hover. On top of this (absolute positioned) is a text layer. In order to allow for the background to react even with the text on top I have added css pointer-event:none to the div containing text. This works well, but it would be better if I could still keep the ability to highlight the text. Does anyone know away to limit which pointer-events are suppressed? 回答1: Actually you can't do what you want. If you disable pointer

iframe with pointer-events: none; but with a div inside it that has pointer-events: auto;

ぃ、小莉子 提交于 2019-12-12 11:42:29
问题 It is possible to have an outer div with pointer-events: none; and another div inside it with pointer-events: auto;. The outer div will be transparent to click events (ie it won't react to click events but underlying html controls will) and the inner one will. However, I now have a scenario where I need to do the same thing with an iframe, but it is not working. I set pointer-events: none; on the iframe, but then the inner divs that should be clickable are not even if they have pointer-events

CSS :hover on SVG group area instead of rendered pixels, pointer-events: bounding-box not working cross browser. How to workaround

依然范特西╮ 提交于 2019-12-11 14:13:03
问题 I'm working on some animated SVGs with CSS animations that triggers on hover. I'm being able to have the SVG animate on hover the way I want to for Chrome but I'm facing a Firefox and Safari issue. Apparently, the pointer-events property applied to groups <g></g> doesn't give same behavior on this browser than on the other modern ones, at least when trying to set the value to bounding-box . I'm doing g { pointer-events: bounding-box; } but the hover only gets triggered when the actual <path>