malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.51k forks source link

updateOnSelectorChange not supporting jQuery like selectors #598

Closed rjpedrosa closed 6 years ago

rjpedrosa commented 6 years ago

Hi,

I have a table that is inside a div with an ID and would like the custom scrollbar to update when that table changes. I would like to have like updateOnSelectorChange: "#mydivID table" , so it only updates when that specific table changes, rather than doing updateOnSelectorChange: "table", which works but will update on every table resize, which is not efficient.

Am I doing anything wrong? Any way to do this / will you plan to add support for this?

rjpedrosa commented 6 years ago

Never mind, it supports jQuery like selectors, but it only searches for children inside MCS container.