I am using a niceScroll plugin in Bootstrap Modal. The plugin seems to work fine in everywhere except in Modal on IE. The issue is, on click and drag of the vertical Scroll Bar to scroll down when I release the vertical scrollbar the modal is automatically closing. I tried event.stopPropagation()
but it did not work.
我在Bootstrap Modal中使用了一个niceScroll插件。除了在IE上的Modal之外,插件似乎在任何地方都能正常工作。问题是,当我释放垂直滚动条时,单击并拖动垂直滚动条向下滚动模式会自动关闭。我尝试了event.stopPropagation()但它没有用。
Please someone provide some input how to handle this behavior of modal scrolling issue.
请有人提供一些输入如何处理模态滚动问题的这种行为。
angular.element('#contentDiv').niceScroll();
angular.element('#contentDiv').getNiceScroll().resize();
<div id="sampleBubblediv" ng-init="loadData()">
<div id="contentDiv"></div>
</div>
1 个解决方案
#1
1
Now that you have narrowed down to IE passing clicks on the scroll bar as body clicks, you need to search for that. Here is a work around for the issue.
现在您已经缩小到IE浏览器,点击滚动条上的点击,您需要搜索它。这是解决问题的方法。
Determine whether user clicking scrollbar or content (onclick for native scroll bar)
确定用户是单击滚动条还是内容(onclick用于本机滚动条)
#1
1
Now that you have narrowed down to IE passing clicks on the scroll bar as body clicks, you need to search for that. Here is a work around for the issue.
现在您已经缩小到IE浏览器,点击滚动条上的点击,您需要搜索它。这是解决问题的方法。
Determine whether user clicking scrollbar or content (onclick for native scroll bar)
确定用户是单击滚动条还是内容(onclick用于本机滚动条)