kimoa / svg-edit

Automatically exported from code.google.com/p/svg-edit
MIT License
3 stars 0 forks source link

proposal: panning canvas when zoomed in by a mouse drag #360

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
scrollbars push you to reposition your cursor from work you focus on, could 
middle click and drag be implementable?
(full disclosure: it's THE inkscape way)

RE: no middle-click on my macbook
personally, the inkscp compatibility is a huge plus for me,
so I will tell tales how you need a mouse for top-speed drawing even on a 
notebook and recommending the touch thing from apple,
but I realize that it may be just me coming from inkscp.

Original issue reported on code.google.com by jan.pta...@gmail.com on 17 Dec 2009 at 6:09

GoogleCodeExporter commented 9 years ago
Can we reliably get middle-button up/down/move across all browser across all 
platforms?

If so, then we should definitely do this.  Special panning mode with middle 
button.

Original comment by codedr...@gmail.com on 17 Dec 2009 at 8:26

GoogleCodeExporter commented 9 years ago
Research: http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-MouseEvent

If the event's button property has its '1' bit set, then the middle button 
changed state.

Original comment by codedr...@gmail.com on 17 Dec 2009 at 8:29

GoogleCodeExporter commented 9 years ago

Original comment by codedr...@gmail.com on 17 Dec 2009 at 8:48

GoogleCodeExporter commented 9 years ago
I don't even want to try to use a "middle button" on a laptop (or on a 
notebook). I
also think that when using a graphic tablet, the "middle button" is extremely 
hard to
use (if it even exists).
I also do not think that the Inkscape compatibility should make SVG-edit use 
every
Inkscape shortcuts. 
First, I'm not convinced that SVG-edit users are going to all know and already 
use
Inkscape. Second, Inkscape has more than a hundred ones! And third, I don't like
shortcuts if they require two fingers or more, or if they require concentrating 
more
on how to "get them" than on the task you're doing :-)
So I'm OK for some panning "function", but not with a middle-button or 
middle-click
(plus drag!), which I'll never be able to get.

Original comment by worms_...@yahoo.com on 17 Dec 2009 at 9:44

GoogleCodeExporter commented 9 years ago
wormsxulla - I get that you want a way to pan other than middle-button, so 
please
suggest an alternative

Original comment by codedr...@gmail.com on 18 Dec 2009 at 4:35

GoogleCodeExporter commented 9 years ago
By the way, I should mention that on my Macbook Pro, the two finger scroll on 
the
touchpad works fine for panning (up-down and left-right) without having to move 
the
mouse in the canvas to the scrollbars.  I believe mousewheel should work the 
same.

Original comment by codedr...@gmail.com on 18 Dec 2009 at 9:11

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Actually a common method in Adobe apps is to hold the spacebar down and drag 
the canvas by holding 
the left mouse button. Shouldn't be too hard to implement.

Original comment by adeve...@gmail.com on 18 Dec 2009 at 10:36

GoogleCodeExporter commented 9 years ago
This seems like it could be a fun little challenge, so I'll try taking it on. 
I'll go
for middle mouse button (where supported) as well as spacebar drag, I'm hoping
wormsxulla will find that an acceptable alternative.

Original comment by adeve...@gmail.com on 30 Mar 2010 at 11:56

GoogleCodeExporter commented 9 years ago
So if I understand things, we'll have three ways to pan:

  * mousewheel / two-finger scroll
  * middleclick drag
  * space + drag

Correct?

Original comment by codedr...@gmail.com on 31 Mar 2010 at 1:07

GoogleCodeExporter commented 9 years ago
Yup!

Original comment by adeve...@gmail.com on 31 Mar 2010 at 1:51

GoogleCodeExporter commented 9 years ago
Fixed in r1494. One minor annoyance for the spacebar mechanism is that the 
cursor 
will flicker on and off while holding it...can't seem to find a way to fix 
that, 
though.

Original comment by adeve...@gmail.com on 1 Apr 2010 at 4:02