[solved] Mouse cursor: arrow focus point

General discussions about Inkscape.
theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

[solved] Mouse cursor: arrow focus point

Postby theozh » Mon Apr 17, 2017 6:41 am

Where would you expect a pen to write...? Of course at the tip!
All Inkscape tools seem to have a pretty obvious point of focus. Rectangle, ellipse, star, pencil, bezier, dropper, etc ...

Cursors.gif
Cursors.gif (8.12 KiB) Viewed 2760 times

So, what would you expect for the standard arrow for selection? The tip of the arrowhead? Not really...
It seems to be somewhere in the center of the arrow more to the shaft/scape. But not always. Is this maybe why it's called Ink-scape? ;-).

Can maybe anybody explain the mechanism of selection, i.e. where and why the arrow selects somewhere?
Can this maybe be somehow changed to be always at the tip/head of the arrow?
For small objects it would facilitate selection. And yes, of course, you always can zoom in and out again...

ArrowPosition.gif
ArrowPosition.gif (143.29 KiB) Viewed 2760 times
Last edited by theozh on Tue Apr 18, 2017 5:35 pm, edited 1 time in total.
Win7/64, Inkscape 0.92.2

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Mouse cursor: arrow focus point

Postby Moini » Mon Apr 17, 2017 11:30 am

I only know that you can set the grab distance in the settings (Edit > Preferences > Input/Output > Input devices). Maybe that info helps to determine how it works? I'd also check for stacking order and specific corners of object bounding boxes.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Mouse cursor: arrow focus point

Postby brynn » Tue Apr 18, 2017 3:29 am

My grab sensitivity is 2, and it does select at the tip of the arrow. I don't remember what the default grab sensitivity is, but I know I've changed it at some point.

Don't forget to restart, to make change take effect.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Mouse cursor: arrow focus point

Postby tylerdurden » Tue Apr 18, 2017 3:54 am

As I increase the number in the grab setting, the selection seems to move down and to the right.

The lower the number, the closer to the point of the arrow.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Mouse cursor: arrow focus point

Postby Moini » Tue Apr 18, 2017 7:39 am

Default is 8, I think - or at least I'm relatively certain I've never changed it.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Mouse cursor: arrow focus point

Postby tylerdurden » Tue Apr 18, 2017 8:38 am

Ja, mine was set to eight. I had never changed it until today.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: [solved] Mouse cursor: arrow focus point

Postby theozh » Tue Apr 18, 2017 5:52 pm

Thanks, @Moini, that helped. I always was wondering what the selection rule is. Sometimes it is the square above, some times below...
Menubar | Edit | Preferences | Input/Output | Input devices | Grab sensitivity
With changing this value to 1 px it it really selects at the arrow-tip.
However, as always, there is a trade-off: Now, of course, you have to select a thin line very precisely.
So, as @brynn suggested, 2 px seems to be a good value. 8px was the default.
OK, and now it's also clear to me why the other tools are "precise", because creating a line, circle, setting a node or getting a color value, etc...is of course different, because you are setting a point. When selecting an object, a certain uncertainty helps ;-).
But I am still wondering, even if the grab sensitivity is 8px or larger if it was possible that the selection nevertheless selects the object which is closest to the arrow-tip?
Win7/64, Inkscape 0.92.2

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: [solved] Mouse cursor: arrow focus point

Postby theozh » Tue Apr 18, 2017 6:48 pm

theozh wrote:But I am still wondering, even if the grab sensitivity is 8px or larger if it was possible that the selection nevertheless selects the object which is closest to the arrow-tip?

Probably, these two "extreme" cases are possible...? (or is it even with circles?)
But I don't know how the detailed selection process is realized, how it's testing overlap of an object with the "Grab sensitivity box", i.e. whether it starts with of the upper left corner or the center, or something else... or as @Moini wrote with the stacking z-order of the objects... or something else...
...I would like to know just for curiosity...
BTW, sensitivity is not increasing with higher px number. So, instead the term should be called more something like "grab tolerance". FWIW...
GrabSensitivity.png
GrabSensitivity.png (9.19 KiB) Viewed 2617 times
Win7/64, Inkscape 0.92.2

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: [solved] Mouse cursor: arrow focus point

Postby Moini » Wed Apr 19, 2017 9:10 am

I think that to solve this riddle, you'd have to read the code. I've been able to follow it to something with 'arena', 'pick' and 'delta', but couldn't find where the actual computation for the distance is done. Actually the term is 'cursortolerance' in the settings source :-)
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “General Discussions”