{"action":"created","issue":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/598","labels_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/598/labels{/name}","comments_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/598/comments","events_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/598/events","html_url":"https://github.com/hammerjs/hammer.js/pull/598","id":37775851,"number":598,"title":"Add a window option","user":{"login":"denis-sokolov","id":113721,"avatar_url":"https://avatars.githubusercontent.com/u/113721?v=3","gravatar_id":"","url":"https://api.github.com/users/denis-sokolov","html_url":"https://github.com/denis-sokolov","followers_url":"https://api.github.com/users/denis-sokolov/followers","following_url":"https://api.github.com/users/denis-sokolov/following{/other_user}","gists_url":"https://api.github.com/users/denis-sokolov/gists{/gist_id}","starred_url":"https://api.github.com/users/denis-sokolov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denis-sokolov/subscriptions","organizations_url":"https://api.github.com/users/denis-sokolov/orgs","repos_url":"https://api.github.com/users/denis-sokolov/repos","events_url":"https://api.github.com/users/denis-sokolov/events{/privacy}","received_events_url":"https://api.github.com/users/denis-sokolov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-07-14T10:44:03Z","updated_at":"2015-06-16T21:28:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hammerjs/hammer.js/pulls/598","html_url":"https://github.com/hammerjs/hammer.js/pull/598","diff_url":"https://github.com/hammerjs/hammer.js/pull/598.diff","patch_url":"https://github.com/hammerjs/hammer.js/pull/598.patch"},"body":"An idea for window option, previously discussed in #597.\r\n"},"comment":{"url":"https://api.github.com/repos/hammerjs/hammer.js/issues/comments/112574545","html_url":"https://github.com/hammerjs/hammer.js/pull/598#issuecomment-112574545","issue_url":"https://api.github.com/repos/hammerjs/hammer.js/issues/598","id":112574545,"user":{"login":"arschmitz","id":462993,"avatar_url":"https://avatars.githubusercontent.com/u/462993?v=3","gravatar_id":"","url":"https://api.github.com/users/arschmitz","html_url":"https://github.com/arschmitz","followers_url":"https://api.github.com/users/arschmitz/followers","following_url":"https://api.github.com/users/arschmitz/following{/other_user}","gists_url":"https://api.github.com/users/arschmitz/gists{/gist_id}","starred_url":"https://api.github.com/users/arschmitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arschmitz/subscriptions","organizations_url":"https://api.github.com/users/arschmitz/orgs","repos_url":"https://api.github.com/users/arschmitz/repos","events_url":"https://api.github.com/users/arschmitz/events{/privacy}","received_events_url":"https://api.github.com/users/arschmitz/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T21:28:32Z","updated_at":"2015-06-16T21:28:32Z","body":"@denis-sokolov just reading up on this going through old pr's i would be more inclined to do something like this \r\n```js\r\nthis.window = this.document[ 0 ].defaultView || this.document[ 0 ].parentWindow;\r\n```\r\nwithin the manager this would ensure the manager always gets the correct window for the context in which it is executed. Then you can just make sure you call each hammer instance in the proper context and it will also get the proper window. Would this address your issue? "}}