{"push_id":939443479,"size":1,"distinct_size":1,"ref":"refs/heads/saas-6-rubberband-ipad-jov","head":"ac2646e54aacf04f9998a0f6d5c3bd210f66ca59","before":"a8f56e513e1b420fd9cfaacd9beba52c0f28159e","commits":[{"sha":"ac2646e54aacf04f9998a0f6d5c3bd210f66ca59","author":{"email":"8c699a05c38304827cff61803bc9687ef59fcf8f@odoo.com","name":"Joren Van Onder"},"message":"[FIX] point_of_sale: stop body rubberbanding on IOS devices\n\nApple devices have a patented feature called rubberbanding that allows\nthe user to scroll past the end (or beginning) of a document. Browsers\non IOS have this same feature.\n\nThis is not an issue most of the time. But sometimes the rubberbanding\nhappens to the entire document.body of the POS, which is not\nideal. Rubberbanding is already disabled partially by\nChrome.disable_rubberbanding(). But it is not perfect. The most\nimportant issue that remained is what happens when a scrollable element\nis either at it's top or bottom and the user *initiates* a scroll past\nits beginning or end. So scrolling an element all the way to the top and\nthen continuing to scroll did not trigger the problem. If however the\nelement was already at the top and you would initiate a scroll up the\nscroll would fall through to the document instead and the entire POS\nwould scroll.\n\nWhat aggrevates the issue from a UI point of view is that as long as the\nrubberbanding animation is not finished, any subsequent scrolls will\ntarget the entire document as well. Normal treatment of scrolling\nresumes only when the animation has finished and the document is in the\ncenter of the screen again.\n\nStopping this behavior is not trivial. The only know solutions are all\nbuilt around stopping touchmove events, which we already did.\n\nThis patch makes it so that we also stop all touchmove events that\ntrigger the unwanted behavior described above. It ensures that we stop\ntouchmove events that would scroll an element above it's top or below\nit's bottom. To do this we have to manually determine whether or not the\nelement is scrolled all the way to the top or bottom and we have to\nmanually determine the direction the user is swiping.","distinct":true,"url":"https://api.github.com/repos/odoo-dev/odoo/commits/ac2646e54aacf04f9998a0f6d5c3bd210f66ca59"}]}