{"action":"created","issue":{"url":"https://api.github.com/repos/ocornut/imgui/issues/180","labels_url":"https://api.github.com/repos/ocornut/imgui/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/ocornut/imgui/issues/180/comments","events_url":"https://api.github.com/repos/ocornut/imgui/issues/180/events","html_url":"https://github.com/ocornut/imgui/issues/180","id":65749678,"number":180,"title":"High resolution dragging mode for float sliders?","user":{"login":"Roflraging","id":3121968,"avatar_url":"https://avatars.githubusercontent.com/u/3121968?v=3","gravatar_id":"","url":"https://api.github.com/users/Roflraging","html_url":"https://github.com/Roflraging","followers_url":"https://api.github.com/users/Roflraging/followers","following_url":"https://api.github.com/users/Roflraging/following{/other_user}","gists_url":"https://api.github.com/users/Roflraging/gists{/gist_id}","starred_url":"https://api.github.com/users/Roflraging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roflraging/subscriptions","organizations_url":"https://api.github.com/users/Roflraging/orgs","repos_url":"https://api.github.com/users/Roflraging/repos","events_url":"https://api.github.com/users/Roflraging/events{/privacy}","received_events_url":"https://api.github.com/users/Roflraging/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-04-01T18:30:21Z","updated_at":"2015-04-03T17:01:36Z","closed_at":null,"body":"I was wondering if imgui already supports some method of high resolution dragging on sliders?\r\n\r\nAn issue I encounter frequently is having a slider which might have a large range and the default dragging increments are very high (or alternatively, the window is sized so that the slider is quite small so the dragging precision drops dramatically).  Most of the time this is OK, but sometimes I want to move at much smaller increments and the sliding mechanism is much more natural than having to type in values directly.\r\n\r\nOne such thing I've seen somewhere (don't remember where) is allowing the user to hold a modifier key (such as control or alt) while dragging which enables the high resolution dragging mode and the slider then starts to move at a smaller increment.\r\n\r\nI think this would be a really useful feature if imgui doesn't already have it!  Let me know what you think.\r\n\r\n-Dale Kim"},"comment":{"url":"https://api.github.com/repos/ocornut/imgui/issues/comments/89355256","html_url":"https://github.com/ocornut/imgui/issues/180#issuecomment-89355256","issue_url":"https://api.github.com/repos/ocornut/imgui/issues/180","id":89355256,"user":{"login":"Roflraging","id":3121968,"avatar_url":"https://avatars.githubusercontent.com/u/3121968?v=3","gravatar_id":"","url":"https://api.github.com/users/Roflraging","html_url":"https://github.com/Roflraging","followers_url":"https://api.github.com/users/Roflraging/followers","following_url":"https://api.github.com/users/Roflraging/following{/other_user}","gists_url":"https://api.github.com/users/Roflraging/gists{/gist_id}","starred_url":"https://api.github.com/users/Roflraging/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roflraging/subscriptions","organizations_url":"https://api.github.com/users/Roflraging/orgs","repos_url":"https://api.github.com/users/Roflraging/repos","events_url":"https://api.github.com/users/Roflraging/events{/privacy}","received_events_url":"https://api.github.com/users/Roflraging/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T17:01:36Z","updated_at":"2015-04-03T17:01:36Z","body":"Ah, yes, sorry I wasn't more clear!\r\n\r\nThe way I originally envisioned it was that the current sliders would just be modified to be able to step at a much smaller increment when you hit another key while fiddling with the slider.  Nevertheless, we would still find the DragFloat or something like it very useful for the case of bounding on only one side of the number line.\r\n\r\nIt's actually kind of a pain right now when we implement our data editing gui and have a float to expose.  Usually there's a clear bound on min or max, but not always both, so we need to spend some time fiddling around to see what a good range is and hope that we set the range well enough for the design work.  We're not always right, so sometimes we get requests to resize the range.\r\n\r\nSomething that might be worth looking into is looking at #76 and see if maybe we can kill a few birds with one mega stone?  Might be too much in one widget... but customizable ranges + a high resolution mode would solve a few issues we're seeing!"}}