Hex editor preview panel scrolling #1163
Replies: 20 comments 1 reply
-
Can you please elaborate a bit into describing the unwanted or unexpected behavior? You describe lines moving when you scroll but that is the way scrolling affects the display of the file. Do the lines continue to move when you stop scrolling? Is the issue that they move slowly? Are they moving in the opposite direction of what they should? sorry if i am missing something obvious. |
Beta Was this translation helpful? Give feedback.
-
Sorry I might have phrased this really poorly. When scrolling, I would expect the lines to stay in the same place if that makes sense? Like the data should move but the top and bottom of each line wouldn't move on the page however when scrolling the top and bottom of each line moves by a few pixels as you scroll up and down. I hope that explains it better, sorry I can't really think of any other way to describe it haha.
Thank you
|
Beta Was this translation helpful? Give feedback.
-
I think this is what you mean but feel free to tell me otherwise.
If this isn't exactly or nearly what you are trying to show use similar step by step with explicit instructions to describe what you see. |
Beta Was this translation helpful? Give feedback.
-
Hiya, I just tried to reproduce it again and I have devised a way of reproducing it.
1. Start with a file with greater than 20649168 lines (exceeds address 013B14D0)
2. Scroll to address 013B14D0
3. Any further scrolling will result in the lines in the hex editor moving down the screen by 1px per scroll where before only the contents of the lines changed
I hope this makes a bit more sense, sorry again for my terrible explanation haha
|
Beta Was this translation helpful? Give feedback.
-
Also when I say scrolling I explicitly mean with the scroll wheel on a mouse, not by moving the trackbar
|
Beta Was this translation helpful? Give feedback.
-
the problem is where to find such file? can you provide it? (drag it to the message) |
Beta Was this translation helpful? Give feedback.
-
does it matter it file is all zeroes? |
Beta Was this translation helpful? Give feedback.
-
I shouldn't think it would matter |
Beta Was this translation helpful? Give feedback.
-
I think any file around 30mb should be enough |
Beta Was this translation helpful? Give feedback.
-
Maybe this is related to how line numbers cant be bigger than 0x0FFFFFFF? but thats much bigger ~280 mbs |
Beta Was this translation helpful? Give feedback.
-
you dont have to manually scroll all the lines from the top with the wheel do you? |
Beta Was this translation helpful? Give feedback.
-
No, I just scrolled to it with the scrollbar then used the scroll wheel after |
Beta Was this translation helpful? Give feedback.
-
i used goto to put me at that location but scrolling from there seems normal. |
Beta Was this translation helpful? Give feedback.
-
To me, one wheel tick jumps about 5 lines. it always does that regardless of where it starts. |
Beta Was this translation helpful? Give feedback.
-
I'm not really sure how else to go about reproducing it, My screen resolution is 1920*1080, 100% scaling. This happens in windowed and fullscreen and occurs on version 1.30.1. I downloaded the portable version. |
Beta Was this translation helpful? Give feedback.
-
Are you on windows?does the pixel scrolling continue no matter where you start after that location? |
Beta Was this translation helpful? Give feedback.
-
Yeah it happens no matter where I start after and yes I am on Windows 11 |
Beta Was this translation helpful? Give feedback.
-
Can you use pgup pgdn instead. or does it also act differently using the keyboard? also try the up/down arrows. |
Beta Was this translation helpful? Give feedback.
-
This is due to how ImGui handles things internally and there's nothing I can do about it. (This is also the reason we have pages and not one continuous data page). In short, this happens due to floating point inaccuracies that start to happen more frequently the larger the numbers become. ImGui uses 32 bit floats internally to store the scroll / cursor offset. If it used doubles (or much better even, actual integers), this wouldn't happen as quickly (or at all) Issue I opened about this ages ago: ocornut/imgui#3609 |
Beta Was this translation helpful? Give feedback.
-
Have only just started using the program and it's been very helpful, just noticed though that when scrolling in the hex editor view, the lines slowly shift up and down depending on which direction you scroll, I'm not sure if that's intended but I just thought I'd point it out, Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions