Tries to find a node which can be scrolled either x pixels to the right or y pixels down among the Elements in {nodes} and children of these Elements.
This function used to be recursive but isn't anymore due to various attempts at optimizing the function in order to reduce GC pressure.
Tries to scroll e by x and y pixel, make the smooth scrolling animation last duration milliseconds
Tries to find a node which can be scrolled either x pixels to the right or y pixels down among the Elements in {nodes} and children of these Elements.
This function used to be recursive but isn't anymore due to various attempts at optimizing the function in order to reduce GC pressure.