Fixing autoscrolling for elements located in frames