Shim for canScrollVertically compatibility