{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/329","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/329/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/329/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/329/events","html_url":"https://github.com/ocornut/imgui/issues/329","id":106081648,"number":329,"title":"Drawing to a Movable Viewport","user":{"login":"Zuppka","id":223192,"avatar_url":"https://avatars.githubusercontent.com/u/223192?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuppka","html_url":"https://github.com/Zuppka","followers_url":"https://api.github.com/users/Zuppka/followers","following_url":"https://api.github.com/users/Zuppka/following{/other_user}","gists_url":"https://api.github.com/users/Zuppka/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuppka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuppka/subscriptions","organizations_url":"https://api.github.com/users/Zuppka/orgs","repos_url":"https://api.github.com/users/Zuppka/repos","events_url":"https://api.github.com/users/Zuppka/events{/privacy}","received_events_url":"https://api.github.com/users/Zuppka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-11T19:50:30Z","updated_at":"2015-09-11T22:46:45Z","closed_at":null,"body":"I've been using ImGui for a bit for a small project I'm working on and so far it's solved a lot more issues that it created and I'm rather satisfied with the functionality! However I'm encountering a programming roadblock now and was wondering if I'd still be able to do what I want using ImGui.\r\n\r\nI have a render area larger than the window resolution, where the program window acts as a viewport. So for example a 1000x1000 render area where only a 200x200 area is visible in the window at one time. I would like to have ImGui windows move around with the viewport, so their position in the viewport is always the same.\r\n\r\nThe problem I encounter is that once I move the viewport out to a location greater than the viewport size, the UI visually remains correctly in position, but the \"clickable\" area gets shifted over and no longer aligns with the ImGui elements as you can see here: \r\n![spanishinfantilehadrosaurus](https://cloud.githubusercontent.com/assets/223192/9824361/3e0a73ba-589a-11e5-9f82-a44bf00b1e36.gif)\r\n\r\nIs there something I could just be overlooking that can easily fix this issue? Is there a way to move the \"clickable\" area directly?\r\n\r\nMy current implementation is a little messy (I'm using SFML) so I'm also concerned this may be an issue of implementation instead. Let me know if further clarification is needed. Any advice is greatly appreciated!\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/139679736","html_url":"https://github.com/ocornut/imgui/issues/329#issuecomment-139679736","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/329","id":139679736,"user":{"login":"Zuppka","id":223192,"avatar_url":"https://avatars.githubusercontent.com/u/223192?v=3","gravatar_id":"","url":"https://api.github.com/users/Zuppka","html_url":"https://github.com/Zuppka","followers_url":"https://api.github.com/users/Zuppka/followers","following_url":"https://api.github.com/users/Zuppka/following{/other_user}","gists_url":"https://api.github.com/users/Zuppka/gists{/gist_id}","starred_url":"https://api.github.com/users/Zuppka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zuppka/subscriptions","organizations_url":"https://api.github.com/users/Zuppka/orgs","repos_url":"https://api.github.com/users/Zuppka/repos","events_url":"https://api.github.com/users/Zuppka/events{/privacy}","received_events_url":"https://api.github.com/users/Zuppka/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T22:46:45Z","updated_at":"2015-09-11T22:46:45Z","body":"The only ImGui component in that animation is the bar on top, it's a narrow horizontal window with ImGui buttons.\r\n\r\nThe blocks and main window are drawn with another library. I'll look into the scrolling functions but would they work only on elements within an ImGui window or on windows themselves?\r\n\r\nThanks!"}}