Account for scrolled view when assigning and unassigning scripts.