{"id":1178,"date":"2009-10-18T15:49:57","date_gmt":"2009-10-18T22:49:57","guid":{"rendered":"http:\/\/www.bibik.org\/blog\/?p=1178"},"modified":"2009-10-18T15:49:57","modified_gmt":"2009-10-18T22:49:57","slug":"instead-of-just-complaining","status":"publish","type":"post","link":"https:\/\/bibik.org\/index.php\/2009\/10\/18\/instead-of-just-complaining\/","title":{"rendered":"Instead of just complaining&#8230;"},"content":{"rendered":"<p>Instead of just <a href=\"http:\/\/www.bibik.org\/blog\/2009\/10\/webkit-versus-the-iphone-beats-android\/\">complaining about Android<\/a>, I decided to do something about it. \u00c2\u00a0It&#8217;s <a href=\"http:\/\/source.android.com\/submit-patches\">open source<\/a>, eh? \u00c2\u00a0I dove into the code and tried to figure out why the Browser was so jumpy. \u00c2\u00a0 I discovered that a single case statement controls a lot of the motions. \u00c2\u00a0It checks if the drag threshold is reached and if so, it then continues with the normal drag code. \u00c2\u00a0Unfortunately, it doesn&#8217;t reset the drag amount so you suddenly get this big jump when you start dragging. \u00c2\u00a0 If you reduce this by a large factor (I chose 80% after some testing), the jump is removed and you&#8217;re still able to drag quickly.<\/p>\n<p>Here&#8217;s my bug report including a code patch for fixing it: <a href=\"http:\/\/code.google.com\/p\/android\/issues\/detail?id=4262\"> http:\/\/code.google.com\/p\/android\/issues\/detail?id=4262<\/a><\/p>\n<p>A better solution would be to unravel how motions are tracked and put the drag check in a different state from the drag start. \u00c2\u00a0My coding ability is way too rusty for that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Instead of just complaining about Android, I decided to do something about it. \u00c2\u00a0It&#8217;s open source, eh? \u00c2\u00a0I dove into the code and tried to figure out why the Browser was so jumpy. \u00c2\u00a0 I discovered that a single case statement controls a lot of the motions. \u00c2\u00a0It checks if the drag threshold is reached [&hellip;]<\/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":[],"class_list":["post-1178","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/posts\/1178","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/comments?post=1178"}],"version-history":[{"count":0,"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/posts\/1178\/revisions"}],"wp:attachment":[{"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/media?parent=1178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/categories?post=1178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bibik.org\/index.php\/wp-json\/wp\/v2\/tags?post=1178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}