rochal / jQuery-slimScroll

small jQuery plugin that transforms any div into a scrollable area with a nice scrollbar. Demo and more:
http://rocha.la/jQuery-slimScroll
2.23k stars 928 forks source link

Mouse wheel scroll does not work on the google chrome after applying the slimscroll #287

Open hardikpanseriya opened 7 years ago

hardikpanseriya commented 7 years ago

I have used the datatable library to render the users on the page( like https://www.facebook.com/messages/t/) I have also set the height to 485px in the datatable. Default scrollbar will be applied when I set the height in the datatable. I want to apply nice scrollbar in place of browser default scrollbar. So, I have used following code to apply nice scrollbar in the datatable.

jQuery('#listview_chats_wrapper .dataTables_scrollBody').slimScroll({
     height: '485px'
});

When I navigate from that page to another page, occasionally mouse wheel scroll is not working in any of the page on the google chrome. It is working perfectly when I remove the code of slimscroll. Can you please look into it?

Thanks in advance.

mahi13c commented 6 years ago

+1

alexnum commented 3 years ago

I've faced a simillar issue, for me, triggering a mouseover event right after the slimScroll appliance solved the issue.

$('#myDiv').slimScroll({});
$('#myDiv').tirgger('mouseover');