Home Download Buy Blog Forum Support

Сlick outside view on minimap jumps in wrong file position

Сlick outside view on minimap jumps in wrong file position

Postby ilya on Fri Oct 09, 2009 7:22 am

Screenshot on the left — before click, on the right — after ckick.

This occurs in 99% of similar cases :(

scr.png
scr.png (215.11 KiB) Viewed 2362 times
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby vim on Fri Oct 09, 2009 9:13 am

true... something with the last change in the minimap look/behavior i guess...
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby jps on Fri Oct 09, 2009 9:55 am

This is mostly unavoidable on any file where the minimap doesn't show the whole file. It's been discussed a couple of times previously on the forums, I'll try to explain the issue a bit better here.

If you rely only on dragging the view rectangle around, then everything's fine. Once click-to-scroll is used, there are two reasonable options: take the user to the text they clicked on in the minimap, or take them to the % position (i.e, click 1/4 of the way down the minimap, and you'll be taken to 1/4 of the way through the file). Sublime Text does the second option, because the first, while it sounds better, is very disconcerting - it would end up with the view rectangle not going to where you click. Let me explain, firstly, take a look at:

pre-click.png
pre-click.png (128.35 KiB) Viewed 2313 times


Imagine this is the current screen, and you want to go to where the mouse cursor is, drawn in blue.

After clicking, the window will look like:

post-click.png
post-click.png (128.27 KiB) Viewed 2308 times


Here you can see that you have been taken to the correct position (note all the ===== signs), but the orange view rectangle is nowhere near the mouse, which is still up at the blue point. This is because the translation of the minimap depends on the translation of the view.

The best compromise may be to take you to the text you click on, but teleport the mouse cursor so it lines up with the new position of the viewport. This still isn't great, but may be more popular than my preference to simply disable clicking on the minimap, and only allow the orange view rectangle to be dragged around.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby ilya on Fri Oct 09, 2009 10:20 am

Oh, it's a tricky a little, but I now understand this situation.

But in the today situation in minimap action after click in long files is very not intuitive.

Move view to desired text position without sinchronization with mouse cursor — this is the least evil. It has at least some sense and logical explanation for what is happening.

And maybe teleport cursor is not necessary, no?
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby vim on Fri Oct 09, 2009 11:05 am

Move view to desired text position without sinchronization with mouse cursor — this is the least evil. It has at least some sense and logical explanation for what is happening.


i too think the mouse cursor may not be synced. i can't tell before trying, but it seems the current implementation is not so intuitive.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby gpfsmurf on Fri Oct 09, 2009 7:26 pm

vim wrote:
Move view to desired text position without sinchronization with mouse cursor — this is the least evil. It has at least some sense and logical explanation for what is happening.


i too think the mouse cursor may not be synced. i can't tell before trying, but it seems the current implementation is not so intuitive.


I agree. The current implementation, while logical, is not useful at all. I only click-to-scroll for small files; for larger files, I drag the rectangle, because clicking sends me to hyperspace and makes me lose track of what I'm doing.
gpfsmurf
 
Posts: 211
Joined: Mon Jun 23, 2008 6:31 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby jps on Sat Oct 10, 2009 3:10 pm

In 20091010, what happens when clicking outside the view rectangle can now be configured. By default, it does nothing. To change this, edit the file type options and set 'clickToScroll' to either 'position' (the old behaviour), or 'text', to scroll the view to the clicked on text. I'd like to hear what everyone thinks about the text mode.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby jps on Sun Oct 11, 2009 12:14 pm

sublimator wrote:You decided against the mouse teleport huh?


Yeah, ran out of time for it - will look at including it in the next beta.
jps
Site Admin
 
Posts: 3067
Joined: Wed Mar 19, 2008 12:33 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby vim on Sun Oct 11, 2009 12:50 pm

i like the change even as it is, i use the 'text' mode. mouse teleport could be nice to have.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Сlick outside view on minimap jumps in wrong file position

Postby ilya on Mon Oct 12, 2009 8:41 am

jps wrote:In 20091010, what happens when clicking outside the view rectangle can now be configured. By default, it does nothing. To change this, edit the file type options and set 'clickToScroll' to either 'position' (the old behaviour), or 'text', to scroll the view to the clicked on text. I'd like to hear what everyone thinks about the text mode.

I tried 'text' and it is for me. Thank you! :D
ilya
 
Posts: 122
Joined: Fri Sep 11, 2009 8:32 pm

Next

Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 25 guests