[haiku-development] Re: ShowImage patch

  • From: Christian Packmann <Christian.Packmann@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Fri, 27 Feb 2009 16:44:35 +0100

Stephan Aßmus wrote:
Humdinger schrieb:
Gabriele Biffi wrote:

Make it configurable? :-)
Please don't and let's find a reasonable standard behaviour. Having settings for every taste is the road to config hell.

++

While I'm not opposed to config hell in general, please not for the
standard image viewer.

I don't know the current behaviour, but it'd be nice ShowImage would zoom always onto the mouse pointer.

I would also prefer that, or at least zoom to the image center. Right now it zooms to the scrollbars leftmost/topmost position, which is really terrible. I don't know if this would be easy to change, its coded in an unintuitive way (IMHO). I need to look at the code more to see if there's an easy solution. Assuming that nobody wants to keep the current behavior. :-)

It could also be argued that the rectangle selecting isn't a much used feature. If it's not, it may make more sense to be able to grab an image to move around with the left mouse button instead.

You could have:
LMB - moving an image
MMB and mouse wheel - zooming
RMB - selecting

+1 on all accounts, MMB should be used for moving as well, but that's personal preference because WonderBrush works the same. ;-)

MMB already performs moving - but I only realized after posting the patch
LMB selects a region
RMB over an unselected region puts up a menu
RMB over a selected region allows moving the region

I'd actually leave the mouse buttons as they are to leave RMB for menus,
and just change the mousewheel default behavior to zoom. Scrolling by wheel could be removed, or made secondary behavior of the mousewheel when modifier keys are held down.

Christian

Other related posts: