xyb3rt / sxiv

Simple X Image Viewer
GNU General Public License v2.0
1.81k stars 260 forks source link

How to make zoom and panning more smooth #458

Closed hektr closed 3 years ago

hektr commented 3 years ago

Hi! Is it possible to change a step, used by zoom? 25% is too big step.

Edited: It seems, it's possible to config zoom and panning step(it's also too big) by just editing config.def.h file before running make. For more smooth panning it's better to use static const int PAN_FRACTION = 25; For smooth zoom it's possible to add more zoom levels.

sdx23 commented 3 years ago

The idea is that a user may just create her own config.h file to override values from config.def.h that she doesn't like with the ones she favors. It is intended that you build your very own sxiv binary.

hektr commented 3 years ago

yes, i understand it now 🙂thanks!