{"action":"created","issue":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1571","labels_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1571/labels{/name}","comments_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1571/comments","events_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1571/events","html_url":"https://github.com/codenameone/CodenameOne/issues/1571","id":102737929,"number":1571,"title":"Scrolling freezes app after pause - resume (iOS)","user":{"login":"jaanushansen","id":11716510,"avatar_url":"https://avatars.githubusercontent.com/u/11716510?v=3","gravatar_id":"","url":"https://api.github.com/users/jaanushansen","html_url":"https://github.com/jaanushansen","followers_url":"https://api.github.com/users/jaanushansen/followers","following_url":"https://api.github.com/users/jaanushansen/following{/other_user}","gists_url":"https://api.github.com/users/jaanushansen/gists{/gist_id}","starred_url":"https://api.github.com/users/jaanushansen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaanushansen/subscriptions","organizations_url":"https://api.github.com/users/jaanushansen/orgs","repos_url":"https://api.github.com/users/jaanushansen/repos","events_url":"https://api.github.com/users/jaanushansen/events{/privacy}","received_events_url":"https://api.github.com/users/jaanushansen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-24T08:34:25Z","updated_at":"2015-10-29T12:11:54Z","closed_at":null,"body":"Hi!\r\n\r\nI run into an annoying bug on iOS: \r\n\r\nWhen app is paused while scrolling is in progress then sometimes after resume the app is totally freezed (not responding to any dragging at all). Unfortunately the bug is not easy to reproduce, but I managed to reproduce it quite often like this:\r\n\r\n1) open this app on iOS device:\r\n```\r\nimport com.codename1.io.Log;\r\nimport com.codename1.ui.events.*;\r\nimport com.codename1.ui.layouts.*;\r\nimport com.codename1.ui.*;\r\n\r\nimport userclasses.StateMachine;\r\n\r\npublic class ScrollingBug {\r\n   \r\n    private Form current;\r\n\r\n    public void init(Object context) {\r\n    }\r\n\r\n    public void start() {\r\n        if(current != null){\r\n            current.show();\r\n            return;\r\n        }\r\n        Form form = new Form();\r\n        form.setLayout(new BorderLayout());\r\n        form.addComponent(BorderLayout.NORTH, new Label(\"Header\"));\r\n        Container panel = new Container();\r\n        panel.setLayout(new BoxLayout(BoxLayout.Y_AXIS));\r\n        List<String> list = new List<String>();\r\n        for (int i = 0; i < 400; i++) {\r\n        \tlist.addItem(\"item\" + i);\r\n        }\r\n        panel.addComponent(list);  \r\n        form.addComponent(BorderLayout.CENTER, panel);\r\n        form.show();\r\n    }\r\n\r\n    public void stop() {\r\n        current = Display.getInstance().getCurrent();\r\n    }\r\n    \r\n    public void destroy() {\r\n    }\r\n}\r\n```\r\n\r\n2) Drag quickly from up to down to start list scrolling motion animation.\r\n\r\n3) Click device's lock button to pause the app\r\n\r\n4) Unlock your device and resume\r\n\r\n5) Try to scroll some more. Now sometimes app just freezes :(\r\n\r\n\r\nHere is the same scenario on video:\r\nhttps://www.youtube.com/watch?v=8ctuhA4hZeE\r\n"},"comment":{"url":"https://api.github.com/repos/codenameone/CodenameOne/issues/comments/152159374","html_url":"https://github.com/codenameone/CodenameOne/issues/1571#issuecomment-152159374","issue_url":"https://api.github.com/repos/codenameone/CodenameOne/issues/1571","id":152159374,"user":{"login":"saeder","id":9945131,"avatar_url":"https://avatars.githubusercontent.com/u/9945131?v=3","gravatar_id":"","url":"https://api.github.com/users/saeder","html_url":"https://github.com/saeder","followers_url":"https://api.github.com/users/saeder/followers","following_url":"https://api.github.com/users/saeder/following{/other_user}","gists_url":"https://api.github.com/users/saeder/gists{/gist_id}","starred_url":"https://api.github.com/users/saeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saeder/subscriptions","organizations_url":"https://api.github.com/users/saeder/orgs","repos_url":"https://api.github.com/users/saeder/repos","events_url":"https://api.github.com/users/saeder/events{/privacy}","received_events_url":"https://api.github.com/users/saeder/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T12:11:54Z","updated_at":"2015-10-29T12:11:54Z","body":"A similar bug #1190 has never been fixed and has just been closed by C1. That seems to be the way they handle things. I've given up on that one."}}