fixed scroll bug where moving the image would result in scroll event being called