cubiq / iscroll

Smooth scrolling for the web
http://iscrolljs.com
MIT License
12.87k stars 3.8k forks source link

resetPosition should verify changes to the negative side of axis X #1141

Closed gabrield-starling closed 7 years ago

gabrield-starling commented 7 years ago

Problem: Had a popup that had multiple tabs inside of it. In order to allow the user to see all of the tab headers used horizontal scrolling but when the user slides to the left side in order to see the last headers, resetPosition would not reset the X,as it was negative.

Possible solution: changed verification so it would reset the X as long as it was changed from 0.

PS: If any corrections were made on this matter, I could not find'em.