I have tested code but it does not work.
How to solve jScrollpane to work when event occurs showing ONLY X scroll:
$(function()
{
$('.modal').on('shown.bs.modal', function (event, scrollPositionX, isAtTop, isAtBottom)
{
$('.scroll-pane').jScrollPane();
console.log('Handle-scroll-x', this,
'scrollPositionX=', scrollPositionX,
'isAtLeft=', isAtLeft,
'isAtRight=', isAtRight);
}
);
}
);