Fixed Clicking image twice redirects to the top

CyberAP

Well-known member
On mobile click once on an image to extend it, then click again to downsize. You expect to stay on the same place but instead you'll be redirected to the top of the page.
Tested on iPhone 5, iOS 6.1.4.
 
This is just bizarre. It happens if you try to set the scrollLeft after setting the scrollTop (even if it's not changing). Flipping them around fixes it.
 
Top Bottom