3

我的页面上有一些gridster小部件。在我的小部件中,我有一个 divoverflow-y设置为true.

在 IE 中,如果我单击小部件内的滚动条,小部件将粘在我的鼠标上,我必须右键单击才能放下它。

这在 Google Chrome 中不是问题。

<li class="widget">
    <div style="overflow-y:true; height: 200px; width: 200px;">
       ... some stuff
    </div>
</li>
4

1 回答 1

0

作为一种解决方法,您可以通过使用 element.attachBrowserEvent 为 'mouseenter' 和 'mouseleave' 事件将事件附加到滚动条。

比禁用/启用拖动选项 ==> $(".gridster ul").gridster().data('gridster).disable / enable 。

试过了,效果很好。。

问候,阿里

于 2016-08-31T10:51:51.087 回答