{"id":335,"date":"2013-02-11T09:56:33","date_gmt":"2013-02-11T08:56:33","guid":{"rendered":"http:\/\/www.tapper-ware.net\/blog\/?p=335"},"modified":"2013-02-11T09:56:33","modified_gmt":"2013-02-11T08:56:33","slug":"on-the-ipad-dont-try-to-fix-scrolling","status":"publish","type":"post","link":"https:\/\/www.tapper-ware.net\/blog\/on-the-ipad-dont-try-to-fix-scrolling\/","title":{"rendered":"On the iPad, don&#8217;t try to fix scrolling"},"content":{"rendered":"<p>I have to admit that this really bothers me. Yesterday, I decided to write a little tool to let my boss create his presentations on an iPad by sorting a set of pre-created images. Nothing fancy, but I needed two separately scrolling viewports that are NOT operated with the two-finger-dragging-gesture. Seemed pretty straight forward. Make the elements in the last-touched element position:absolute, so that they scroll with the document, while keeping the rest position:fixed so that they stay were they are. Tried it on various browsers on both Android and Windows and it&#8217;s so braid-dead simple that even IE can cope.<\/p>\n<p>The thing that I was worried about was that the iPad would smooth-scroll to the new scroll position that&#8217;s needed when you return to a previously-scrolled element (you can&#8217;t just move the element to the correct position, because that would usually be negative and that means that you wouldn&#8217;t be able to scroll to the left-most parts of the element). Turns out that part worked, but everything else fell to pieces. Switching between fixed and absolute a couple of times with big elements almost always crashes Safari straight away. Plus, after switching a couple of times, the iPad would usually get confused and move the scrollable area to some arbitrary rectangle.<\/p>\n<p>I&#8217;m sorry, but I really don&#8217;t know how to say this nicely: Apple, get your act together. The iOS browser was great when it came out, but having to worry about scrolling feels like the nineties all over again.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have to admit that this really bothers me. Yesterday, I decided to write a little tool to let my boss create his presentations on an iPad by sorting a set of pre-created images. Nothing fancy, but I needed two separately scrolling viewports that are NOT operated with the two-finger-dragging-gesture. Seemed pretty straight forward. Make &hellip; <a href=\"https:\/\/www.tapper-ware.net\/blog\/on-the-ipad-dont-try-to-fix-scrolling\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">On the iPad, don&#8217;t try to fix scrolling<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/335"}],"collection":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/comments?post=335"}],"version-history":[{"count":1,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions"}],"predecessor-version":[{"id":336,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/335\/revisions\/336"}],"wp:attachment":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/media?parent=335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/categories?post=335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/tags?post=335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}