BLumia / pineapple-pictures

A homebrew lightweight image viewer.
https://sourceforge.net/projects/pineapple-pictures/
MIT License
406 stars 51 forks source link

middle mouse button to close window? #41

Open 775405984 opened 2 years ago

775405984 commented 2 years ago

Please add click middle mouse button to close window.

BLumia commented 2 years ago

The feature you requested is not hard to implement, but it's sort of weird for me to introduce a middle-mouse-to-close-window feature since it seems middle-mouse-to-close behavior only appears in multi-tab applications. Could you explain the use case?

775405984 commented 2 years ago

The feature you requested is not hard to implement, but it's sort of weird for me to introduce a middle-mouse-to-close-window feature since it seems middle-mouse-to-close behavior only appears in multi-tab applications. Could you explain the use case?

I just want a replacement for FastStone MaxView. It hadn't been updated for 2 years, and it doesn't support some of the filetypes. Other than that, I think FastStone MaxView is THE most useful image viewer I've ever used. So, middle-mouse-to-close is just one of the features I needed. Thanks.

BLumia commented 2 years ago

I downloaded a portable trial version copy of FastStone MaxView 3.3 and it seems it will try to switch to the fullscreen mode when MMB is clicked, and I didn't find any setting to let me set MMB to close the application, did I miss something? Thanks.

btw, for anyone who also needs this feature, please consider voting this issue with 👍 or by comment below so I could consider if I really need to add this feature :)

775405984 commented 2 years ago

I downloaded a portable trial version copy of FastStone MaxView 3.3 and it seems it will try to switch to the fullscreen mode when MMB is clicked, and I didn't find any setting to let me set MMB to close the application, did I miss something? Thanks.

you need to use it to open a image, then it will work. Snipaste_2022-01-04_18-23-18

BLumia commented 2 years ago

you need to use it to open a image, then it will work.

I did, but MMB clicking still won't close the window.

The action you marked in the red rectangle says to launch in Full Screen instead of closing the window, did you mean use MMB click to enter full screen?

775405984 commented 2 years ago

I did, but MMB clicking still won't close the window.

Open a picture with MaxView, MMB clicking to full screen then close the window. Open agian, MMB clicking to see if it does what I said.

did you mean use MMB click to enter full screen? No. You can see the video I recorded.

https://user-images.githubusercontent.com/7196377/148063415-2c2bb1ad-e997-430b-8c07-32220584a936.mp4

BLumia commented 2 years ago

That's weird. Maybe because I'm using a trial version that doesn't come with such a feature. Anyway thanks for showing the actual behavior. Still, for anyone who also needs this feature, please consider voting this issue with 👍 or by comment below so I could consider if I really need to add this feature :)