sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
668 stars 69 forks source link

List page scrolling drift occurs occasionally #126

Closed gadfly3173 closed 2 months ago

gadfly3173 commented 2 months ago

https://github.com/sourcegit-scm/sourcegit/assets/28685179/c7b2eb7e-70dc-4f25-ae1e-ea6bb4d7dd39

When I stay on the list page and switch directly to other applications, such as Chrome and IDEA, use the mouse wheel to scroll down a certain distance, switch back to SourceGit, and scroll again on the list page, the list page may suddenly scroll down for a large distance. distance. Currently only found on my Deepin OS 20.9, may be a Linux platform specific issue.

love-linger commented 2 months ago

I can not reproduce this issue on my Debian 12 (Wayland)

Just confirmed, that I can not reproduce this issue on my Windows 11 & macOS 14.

Maybe it's an issue belongs to DDE?

gadfly3173 commented 2 months ago

image It seems to instantly pick up all the wheel actions I had while leaving the app when I switch back to SourceGit scrolling.

xdpyinfo
name of display:    :0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    12011000
X.Org version: 1.20.11
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0xca0000a, revert to PointerRoot
number of extensions:    28
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    DRI3
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
default screen number:    0
number of screens:    1
love-linger commented 2 months ago

I've switch my Debain from Wayland to X11. And I still can NOT reproduce this issue.

https://github.com/sourcegit-scm/sourcegit/assets/4075673/39f8f4b1-b96b-4990-a63d-4f4f643c506f

gadfly3173 commented 2 months ago

I did not reproduce this problem when using other system tests in the virtual machine. It may be caused by some very complicated reasons.