DSPaul / COMPASS

TTRPG resource manager, bringing all your books, maps, etc. in one place.
https://www.compassapp.info
GNU General Public License v3.0
78 stars 8 forks source link

Auto scroll when i click on an item #61

Closed lucastucious closed 8 months ago

lucastucious commented 8 months ago

Describe the bug When in click on an item, the view is scrolling Expected behavior no scrolling

Screenshots/files

https://github.com/DSPaul/COMPASS/assets/28046122/c3ddc7aa-c44a-4a24-9c80-e60ee153ee33

System info (please complete the following information):

DSPaul commented 8 months ago

I have never seen that behaviour, very bizar. Does this happen consistently or was it a one-off random thing?

lucastucious commented 8 months ago

Since I import all my books it does this. But not everytime.

I have to check, but I think it begin when I make a multiple selection in the first place

DSPaul commented 8 months ago

I'm pretty sure it has to do with windows scaling being buggy as always. Just to confirm, can you go to your windows display settings and set scaling back to 100% (assuming it wasn't already) and see it that fixes it?

Edit: nvm it's not that, the problem seems to get worse as you scroll further down, and having a lower scaling makes is so you have to scroll less which made it seem fixed. That is likely also why you have it so bad, more items means more scrolling which causes this problem to become real bad.

DSPaul commented 8 months ago

I have just disabled the auto scrolling for now. This behaviour which was supposed to make sure that if you select an item that is partially out of frame, it scrolls a little so that it is completely in view. But given that it is clearly bugged and causes it to scroll completely out of view, it's better not to have it at all.

DSPaul commented 8 months ago

I found the root cause and was able to fix it while keeping the scrolling into view functionality from before.