Narrat / Pim

PyGObject based image viewer with vim-like keybindings
MIT License
28 stars 9 forks source link

mouse panning #22

Closed aeosynth closed 8 years ago

aeosynth commented 8 years ago

taken from todo comment

Narrat commented 8 years ago

Probably should be renamed into general mouse actions, as there were ideas for more. Although I'm not sure about those. First one was from the old ToDo, second and third were later thought upon. But personally I can live without mouse support.

Last two should be similar to implement like your double click feature, so fairly easy. Still to decided if they're needed

aeosynth commented 8 years ago

last two might be harder to implement now that double-click fullscreen was implemented:

http://lazka.github.io/pgi-docs/#Gdk-3.0/enums.html#Gdk.EventType._2BUTTON_PRESS

a mouse button has been double-clicked (clicked twice within a short period of time). Note that each click also generates a Gdk.EventType.BUTTON_PRESS event.

Narrat commented 8 years ago

Gah. Well, there is still the mouse wheel :D But I suppose it would be expected to achieve a change of the zoom_level with it

aeosynth commented 8 years ago

we could expose double and single clicks to the user, and let them choose which they want (leave comment describing situation)

aeosynth commented 8 years ago

i added support for back/forward mouse button. it's possible that the buttons are specific to my mouse; if so we need a separate section for mouse binds

Narrat commented 8 years ago

Looks like a separate section is necessary. Those binds don't work for me at least on one of my machines. Need to test the other ones

aeosynth commented 8 years ago

added mouse binds. we really need a config file now

aeosynth commented 8 years ago

done in next