d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.75k stars 499 forks source link

Support for precision trackpad (touchpad)? #305

Open Geliv opened 6 years ago

Geliv commented 6 years ago

ImageGlass is almost the best image viewer for windows 10! Thank you very much.

But, is it possible to add support for trackpad? So that I can use gestures such as two fingers to zoom in/out, and switch between images?

The photos app is too bad in many ways, but the support for gestures are pretty nice. Really hope ImageGlass can add more support for trackpad.

Many thanks!

d2phap commented 6 years ago

Hi @Geliv I understand this. I will investigate my time.

Geliv commented 6 years ago

Looking forward to related update. Many thanks!

WinkelCode commented 2 years ago

image This configuration works pretty well with my Magic Trackpad 2 with Windows Precision drivers, pinch zoom is responsive and I can at least navigate up and down with two finger swiping, the drawback is that you need to hold down Ctrl to zoom when using a mouse, but I am already used to this from software like Affinity Designer.

With Windows Precision, "Mouse wheel + Ctrl" maps to the pinch gesture, while "Mouse wheel" maps to two finger up/down swipe.

"Mouse wheel + Shift/Alt" don't seem to have such mapping (configure them as you like).

boromyr commented 2 years ago

I too would like to have full trackpad support in IG 9, to move the zoomed image like in Photoshop or Edge. I currently use this script in AutoHotKey which emulates the motions:

#IfWinActive, ahk_exe ImageGlass.exe
    WheelUp::
        Send, {Up 6} 
        Sleep, 10
    return 
    WheelDown::
        Send, {Down 6}
    return 
    Sleep, 10
    WheelRight::
        Send, {Right 6}
        Sleep, 10
    return 
    WheelLeft::
        Send, {Left 6}
        Sleep, 10
    return 
    ^WheelUp::
        Send, {+} 
        Sleep, 10
    return 
    ^WheelDown::
        Send, -
        Sleep, 10
    return
#IfWinActive

Crude but effective, the problem is scrolling not perfectly smooth, and not being able to use scrolling in thumbnails or settings.

d2phap commented 2 years ago

IG v9 beta 1 is done, and I'm preparing for the release. V9 beta 1 introduces a new feature: "Image focus mode" to zoom and pan smoothly using keyboard (configurable).

It does not support all trackpad gestures yet but zooming using trackpad or mouse wheel is pretty smooth (up to 60 FPS) :)

boromyr commented 2 years ago

Great! When will the first beta come out?

d2phap commented 2 years ago

Great! When will the first beta come out?

This weekend! It's a rewritten app, so there are lots of missing features, too.

boromyr commented 11 months ago

Is there still any chance this feature will be integrated into V9?

fuweichin commented 4 months ago

Support horizontal wheel.

Most touchpads and some full-featured mice support horizontal wheel (HID Usage: AC Pan), while Mousewheel + Shift is the old-fashioned way to horizontal scroll.