jQuery Mouse Up事件不适用于IE 11滚动条 [英] Jquery Mouse Up event didn't work with IE 11 scrollbar
问题描述
$(document).mouseup(function () {
console.log("mouse up");
});
有人知道为什么在单击滚动条时mouseup事件不能用于IE 11吗? chrome和FF都可以.
Anyone know why mouseup event didnt work for IE 11 when clicking on scrollbar? It works ok for chrome and FF.
推荐答案
It is a known issue https://connect.microsoft.com/IE/feedback/details/783058/scrollbar-trigger-mousedown-but-not-mouseup and sadly Microsoft decided it's not important and won't fix it.
但是,此错误可能不是典型的开发人员场景,尤其是随着更多的浏览发生在以触摸为中心的设备上,我们将无法在此发行版中解决此错误.
However, this bug may not be a typical developer scenario particularly as more browsing happens on devices that are touch centric, we will not be able to address this bug during this release.
我们将继续调查是否需要使用mousedown和 单击滚动条触发鼠标向上.
We will continue to investigate the need for both mousedown and mouseup triggered by clicking the scrollbar.
这篇关于jQuery Mouse Up事件不适用于IE 11滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!