Lets say I have an imageviewer, that uses dimgui to list the files to show. Besides clicking on the files, it is also possible to press a key to jump to the next file. In case the next file is outside of the current visible part of the scrollarea, the scrollarea needs to be adjusted. Question is how to calc the offset?
Lets say I have an imageviewer, that uses dimgui to list the files to show. Besides clicking on the files, it is also possible to press a key to jump to the next file. In case the next file is outside of the current visible part of the scrollarea, the scrollarea needs to be adjusted. Question is how to calc the offset?