hbl917070 / Tiefsee4

An open-source image viewer for Windows with powerful features and ease of use
https://hbl917070.github.io/aeropic/
MIT License
285 stars 12 forks source link

Request to add keyboard customization function for zoom in, out #45

Open parkerjohn6 opened 1 month ago

parkerjohn6 commented 1 month ago

Can you add a keyboard customization function using ("i"&"o" or "="&"-") for zoom in and out?

Because when I don't have a mouse with me, using a touchpad of a laptop to zoom is really hard to control the zoom level, it will zoom in/out too much, you can try zooming with a touchpad with the mouse shortcut setting below: image 我刚刚好像抓到诀窍了。只要加快 缩放(finger pinch) 这个动作就好了。但是还是比较难控制的,有keyboard customization功能就好了。

hbl917070 commented 1 month ago

The current shortcut keys for zooming in on the image are set to the shift and ctrl on the right side of the keyboard.

The function of customizing keyboard shortcuts is more complex, so the development order is placed later.

The problem of difficult control of touchpad zooming is a bit tricky. I currently don’t have a device that can test this function. Tiefsee 4.2.3 has adjusted the rate of touchpad zooming images, but I am using a drawing tablet from more than a decade ago, the sensitivity is very poor, maybe that’s why I accidentally made the rate too high.


目前縮放圖片的快速鍵是設定在鍵盤右邊的 shiftctrl

自定義鍵盤快速鍵的功能比較複雜,所以開發的順序擺在比較後面

觸控板縮放難以控制的這個問題就有點傷腦筋了,我目前沒有可以測試這項功能的裝置, Tiefsee 4.2.3 有調整過觸控板縮放圖片的速率,但我用的是10幾年前的繪圖板,靈敏度很差,也許是因為這樣才導致我不小心把速率改的太高

parkerjohn6 commented 1 month ago

滑鼠没问题。这里让你了解下,触控板缩放 = Ctrl + Scroll up/down,不需要按Ctrl。另外,触控板向下划会等于↓按键,不是scroll down。

parkerjohn6 commented 1 month ago

请问本地这里Setting.json可以调整速率吗?

hbl917070 commented 1 month ago

目前沒有提供覆寫縮放速率的功能,只能改原始碼 路徑 /Www/js/Tiefseeview.js 預設是 1.1,表示每次縮放都是 10% image

不過觸控板縮放觸發的頻率跟滑鼠滾輪不一樣,所以如果要設計修改縮放速率的功能,可能要把滑鼠跟觸控板分開 或是把觸控板的縮放速率再除以2,避免速度過快

parkerjohn6 commented 1 month ago

改成1.00001,滑鼠滚轮没有受到影响。虽然触控板缩放速度有稍微减慢,但缩放率仍难以精确控制,可能只能等键盘热键客制化才能控制了。