{"action":"created","issue":{"url":"https://api.github.com/repos/AirtestProject/Airtest/issues/3","repository_url":"https://api.github.com/repos/AirtestProject/Airtest","labels_url":"https://api.github.com/repos/AirtestProject/Airtest/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/AirtestProject/Airtest/issues/3/comments","events_url":"https://api.github.com/repos/AirtestProject/Airtest/issues/3/events","html_url":"https://github.com/AirtestProject/Airtest/issues/3","id":302776147,"number":3,"title":"swipe not working properly","user":{"login":"Whiteseeker","id":4581097,"avatar_url":"https://avatars3.githubusercontent.com/u/4581097?v=4","gravatar_id":"","url":"https://api.github.com/users/Whiteseeker","html_url":"https://github.com/Whiteseeker","followers_url":"https://api.github.com/users/Whiteseeker/followers","following_url":"https://api.github.com/users/Whiteseeker/following{/other_user}","gists_url":"https://api.github.com/users/Whiteseeker/gists{/gist_id}","starred_url":"https://api.github.com/users/Whiteseeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whiteseeker/subscriptions","organizations_url":"https://api.github.com/users/Whiteseeker/orgs","repos_url":"https://api.github.com/users/Whiteseeker/repos","events_url":"https://api.github.com/users/Whiteseeker/events{/privacy}","received_events_url":"https://api.github.com/users/Whiteseeker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-06T16:41:52Z","updated_at":"2018-03-06T16:52:58Z","closed_at":null,"author_association":"NONE","body":"I'm using: \r\n![screen shot 2018-03-06 at 4 41 06 pm](https://user-images.githubusercontent.com/4581097/37045176-39c782be-215d-11e8-91b4-370619bcc908.png)\r\n\r\nI have a very simple script like that:\r\n\r\n```\r\nstart_app(\"com.google.android.apps.santatracker\")\r\nsleep(5.0)\r\nswipe(v1=[0.5, 0.3], v2=[0.5, 0.8])\r\n```\r\n\r\nGive the doc [here](http://airtest.readthedocs.io/en/latest/all_module/airtest.core.api.html#airtest.core.api.swipe) I would expect tit to swipe half the height of the screen starting at 30% of the screen and finishing at 80% of the screen (all happening at half the width, ie the middle of the screen).\r\n\r\nInstead I can see the notification bar briefly appearing and nothing else. When I activate the debug option to show the input pointer it show the pointer quickly appearing an disapearing on the top left corner."},"comment":{"url":"https://api.github.com/repos/AirtestProject/Airtest/issues/comments/370849072","html_url":"https://github.com/AirtestProject/Airtest/issues/3#issuecomment-370849072","issue_url":"https://api.github.com/repos/AirtestProject/Airtest/issues/3","id":370849072,"user":{"login":"Whiteseeker","id":4581097,"avatar_url":"https://avatars3.githubusercontent.com/u/4581097?v=4","gravatar_id":"","url":"https://api.github.com/users/Whiteseeker","html_url":"https://github.com/Whiteseeker","followers_url":"https://api.github.com/users/Whiteseeker/followers","following_url":"https://api.github.com/users/Whiteseeker/following{/other_user}","gists_url":"https://api.github.com/users/Whiteseeker/gists{/gist_id}","starred_url":"https://api.github.com/users/Whiteseeker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Whiteseeker/subscriptions","organizations_url":"https://api.github.com/users/Whiteseeker/orgs","repos_url":"https://api.github.com/users/Whiteseeker/repos","events_url":"https://api.github.com/users/Whiteseeker/events{/privacy}","received_events_url":"https://api.github.com/users/Whiteseeker/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T16:52:58Z","updated_at":"2018-03-06T16:52:58Z","author_association":"NONE","body":"It looks like [0.5, 0.3] is interpreted as 0.5 px and 0.3 px.\r\nI tried:\r\n`swipe(v1=[200, 800], vector=[0.0, -0.5])`\r\nThat properly scroll half a screen from the pixel 200 and 800 up. That brings 2 questions:\r\n\r\n1. Where is it documented that [0, 0] is top left corner (I was naively assuming bottom left)\r\n2. why the first [200, 800] is interpreted in pixel and the second [0.0, -0.5] is interpreted as screen %age ?\r\n\r\nIs there a way I can get v1 to be interpreted as %age ?"}}
{"actor":{"display_login":"Whiteseeker"}}