If the element you call $.scrollintoview() on is itself scrollable, then it doesn't work because inside the function you use el.closest(":selectable") instead of el.parent().closest(":selectable"). Thus the element is always selected rather than it's closest scrollable parent.
If the element you call $.scrollintoview() on is itself scrollable, then it doesn't work because inside the function you use
el.closest(":selectable")
instead ofel.parent().closest(":selectable")
. Thus the element is always selected rather than it's closest scrollable parent.